Click here to Skip to main content
15,893,190 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How do I add scrollbars to a C# form during runtime....?

What I have tried:

I don't know how to do that code. I have no idea..
Posted
Updated 20-Jul-20 21:39pm

1 solution

It depends on what control or controls you want to have the scroll bars.
Bear in mind that the Form is also a Control, so if you want to add scroll bars to that, you can do it in exactly the same way as any other container: by setting the AutoScroll property[^] to true.
Then, if any controls are outside the current form display area, the appropriate scroll bars will automatically appear.
 
Share this answer
 
Comments
Member 12712527 21-Jul-20 4:02am    
Thanks...
OriginalGriff 21-Jul-20 4:20am    
You're welcome!

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