J
j0rd4n
I have a user control that needs to allow vertical scrolling but not
horizontal scrolling. In the user control's resize event, I need to
adjust the size of all the children controls. For this to work
correctly, I need the AutoScroll to not enable the horizontal
scrollbar.
After researching MSDN, I found the HScroll which can be used to
disable horizontal scrolling when the AutoScroll mode is enabled.
However, when I disable HScroll, it gets re-enabled again when my user
control is resized. I tried disabling at the beginning and front of
the resize event handler of the user control, but it still flips back.
Any ideas on how to get this to work?
horizontal scrolling. In the user control's resize event, I need to
adjust the size of all the children controls. For this to work
correctly, I need the AutoScroll to not enable the horizontal
scrollbar.
After researching MSDN, I found the HScroll which can be used to
disable horizontal scrolling when the AutoScroll mode is enabled.
However, when I disable HScroll, it gets re-enabled again when my user
control is resized. I tried disabling at the beginning and front of
the resize event handler of the user control, but it still flips back.
Any ideas on how to get this to work?