Click here to Skip to main content
15,886,095 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
As question. I have TableLayoutPanel and set AutoScroll property True. At designer, after add some controls, scrollbar show, but i can not use this scrollbar. Can anyone tell me, how to use scrollbar and drag down to end control.

Thank you.
Posted
Updated 6-Dec-15 17:13pm
v2
Comments
Philippe Mori 7-Dec-15 12:33pm    
Usually, you try to avoid scrollbar at design time by making the form big enough... Using a UserControl might help in some case as you can design the control at a large size but make it smaller when you insert it.

1 solution

You can't. The only way to see the rest of the table is to resize the container your TLP is in to show the content you need to see.

If AutoScroll is set to True on any of the controls that support it, scrolling in the designer works.

The TableLayoutPanel is not really a control. It's an extension that adds a layer of layout functionality to existing controls. The TableLayoutPanel doesn't support scrolling at all.
 
Share this answer
 
v2
Comments
NguyenTrungK4a 7-Dec-15 0:33am    
Yes i see. This occur with DataGridView too. But in Form scroll bar, we can drag it to see other control. So what is different mechanism here?
Dave Kreskowiak 7-Dec-15 9:37am    
My bad. It helps to turn on AutoScroll instead of cycling AutoScalMode.

See the updated answer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900