Using VS2010 and .NET 4.0 with C # and WinForms:
I always want the vertical scroll bar to appear for my panel as a disabled scroll bar (when it is not needed and on when it can be used.
So, it looks like a hybrid AutoScroll. I tried using VScrollBars, but I can’t figure out where to place them to do this job.
Essentially, I have a user control that acts like a “Document” of controls, its size changes, so when using automatic scrolling, it works great. A scrollbar appears when the user control is not suitable, and the user can move it updown.
It looks like a web browser. However, redrawing controls take a lot of time (it is formed with many fields and buttons, etc. Inside groups in a grid inside a panel: P
Somehow, when autoscroll allows a vertical scrollbar, it takes some time to redraw the window. I would like ALWAYS to show a vertical scroll bar as described above (with the ability to turn it on / off).
If anyone has any help, I read a lot of posts on the topic of auto-scrolling, but no one asked what I ask, and I can not come up with a solution.
source
share