c# - Table layout panel scroll bar -
given table layout panel 2 columns , many rows, how can attatch scroll bar grows greater size of form .
thank you
the tablelayoutpanel
example of scrollablecontrol
. can therefore set it's autoscroll
property true , control automatically create scroll bars when it's preferred size exceeds current size. provide desired effect minimal hassle.
procedure
- set
maximumsize
property preferred maximum size or can dock tablelayoutpanel in form. - set
autoscroll
property of tablelayoutpanel true.
fyi:
panel, toolstrip, flowlayoutpanel, splitterpanel, tablelayoutpanel, tabpage , toolstripcontentpanel inherit scrollablecontrol
class answer applies them well.
Comments
Post a Comment