.net - Customize Windows Form Scrollbar -


i have searched world wide web without proper answer.

in windows form application, want change width of scrollbar belongs flowlayoutpanel.

the scrollbar added "automatically" since content of flow layout panel larger form.

from i've found on web, seems tricky.

is there solution this?

cheers!

no, there's no way change width of scrollbar displayed on single control (although there system-wide setting affect all scrollbars in applications).

the ugly truth lowly scrollbar control far more complicated looks. basically, scrollbars on flowlayoutpanel drawn windows (rather .net framework) because of ws_hscroll and/or ws_vscroll window styles set control behind scenes. flowlayoutpanel doesn't provide facility change or modify how these built-in scrollbars drawn. unlike other more advanced modifications in winforms, there no such messages can send control's window procedure. , make matters worse, scrollbars drawn in non-client area of flowlayoutpanel, means can't override paint event , handle drawing scrollbars ourselves.

unfortunately, if want customize scrollbars, you're going have hide built-in scrollbars , roll own. it's not quite difficult sounds, though, if you're it. this article on codeproject provides walk-through on creating own skinnable scrollbar user control , use replacement in container control of choice.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -