Click here to Skip to main content
15,891,828 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have created a window and added almost 50 buttons to it. But the problem is that I can only see a few of those buttons as my window does not scroll up/down or left/right to show me the remaining buttons.

If my window is an edit box, I can easily add AutoScroll to it i.e. as soon as the text in edit window exceeds the available area on the window, it starts scrolling. But that functionlity is only for edit window.

How can I add such functionlity of Auto-Scroll to a window (which is not an Edit Window) with multiple buttons i.e. if number of buttons exceed the available space on window, it must start auto scrolling.
Posted

1 solution

put your buttons inside the System.Windows.Forms.Panel and set AutoScroll = true

more info here:
Customize a panel with Autoscroll property[^]
 
Share this 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