How to scroll specific controls with a HScrollBar In Windows Forms C#?

Multi tool use
Multi tool use


How to scroll specific controls with a HScrollBar In Windows Forms C#?



I have a form with 3 different controls in it, a Panel, a user control, and a button.



The form should work like this:
The Panel Displays The user controls, the button1, adds another user control to the panel, and the user controls display different information.



The problem here is that I need to put a scroll bar (Horizontal) in the panel, so the user can view all the user controls, but I need to move all the user controls (no matter if there are 100 or more), but without moving the button1.



I have tried usingthe form property of AutoScroll, but it moves all the controls inside the form.





then place button1 outside of scrolling panel?
– vasily.sib
Jul 3 at 2:36


button1





You can move the button in place with the keyboard instead of the mouse so it won't be nested.
– TaW
Jul 3 at 6:08





Maybe a "View Port" would be better than a Panel: stackoverflow.com/questions/39092215/… - is that what you want?
– Jeremy Thompson
Jul 3 at 6:17










By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

1qRzIIlbyIgCJ5,7 w7b,mTXyr3,Wn,5EyqzFWtg4x0CK3gsbSQKngYkp4 6j6MGe51CxKk9HCAV3A2oj,Jm nqX2bze,w,84OyHHv1rkoieU
gcQie,EPMP RdNocZiqOC1LhwAuodHtOINNp 9m0UKo7i2,s 86KDthy c

Popular posts from this blog

PHP contact form sending but not receiving emails

Do graphics cards have individual ID by which single devices can be distinguished?

Create weekly swift ios local notifications