Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
So, in a new form I create programmatically some labels and linklabels. The number is NOT known by the start of the program. And I need to display them in a container or something, and when they are too many, the container should display a vertical scrollbar..

My Form is must have a fixed size

I tried Panel, LinkLabel but no success, meaning it doesn't show a scrollbar and some of the controls don't show up

Do you have any ideas?

(I want to make something like a table of contents, but which doesn't have a fixed number of items)

Thank you...
Posted

1 solution

Set the Panel's AutoScroll property to true and it will display a scroll bar when the controls in it do not fit.
 
Share this answer
 
Comments
Luci C 17-May-13 13:28pm    
Great.. Thank you very much!
Fabio Franco 17-May-13 13:28pm    
Glad to help!

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