.net - C# FlowLayoutPanel scrollBar -
i'm making instant messaging application in c#. problem i'm facing right contacts list i've made custom control extendingusercontrol, contains aflowlayoutpanel`.
that panel contain list of usercontrols. want customize vscrollbar, no chance (not possible). instead have genius idea hide vscrollbar flowlayoutpanel, , make simple buttons (up , down events). worked charm, when tried hide vscrollbar making property autoscroll = false , buttons stopped working.
how can hide vscrollbar?
if want hide the vertical bar, there possible solutions. ..
- you make event resize, controls add, controls remove , set child controls' width flowlayoutpanel.width -20
- you add panel flowlayoutpanel , set autosize , make panels may width flowlayoutpanel.width-20.
- you check if width of flowlayoutpanel bigger real width (means vscrollbar appeared) , , resize children it'll/ld hide again
- and if sure controls smaller flowlayoutpanel's width, create panel covers vertical bar. (use .bringtofront() put before flowlayoutpanel's scrollbar)
i hope understood , perhaps have solved problem
Comments
Post a Comment