1

Could someone provide an example about how to custom paint the scrollbar in a scrollable panel?

Thanks in advance.

Daniel Peñalba
  • 30,507
  • 32
  • 137
  • 219
  • Just to be clear, you still want the automatic scrolling behavior of contained controls -- it's only the appearance of the scroll bar you want to change? The long way is to fully re-implement the scrolling on a non-scrollable Panel; hopefully someone knows a shorter way. – Justin Feb 09 '11 at 15:41
  • I doubt it, there's no custom draw support for the window scroll bar. – Hans Passant Feb 09 '11 at 15:42
  • Yea, the only way to do this is to create custom scroll bars and deal with 'docking', scrolling, and drawing. It's generally not done with Windows common controls (which is what Winforms uses) because the work outways the benefits. WPF is the better choice for this. – Tergiver Feb 09 '11 at 16:08

0 Answers0