Home > Net > Winform automatic control center in the form and the problem of the scroll bar
Winform automatic control center in the form and the problem of the scroll bar
Time:09-18
Assuming the form of variable size number of controls, I set up the control center, all controls at the same time to set the anchor attribute to none, so that you can guarantee in the form size changes can still be centered when control, But at the time of form drag size change, if the form has shrunk to control can't fully display, window scroll bar will not appear autoscroll (I set up the window to true), why is this excuse me? How to ensure that the form is very small, the scroll bar automatically appear?
At the same time, I had a test, if you want to scroll up and down automatically appear, you must set the anchor top (can't set the bottom), if you want to automatically appear around the scroll bar, you must set the anchor lef (not set right),
If you want to make the control form in size change automatically center, and automatically appear scroll bar, we generally is how to solve this problem?