real problem with scrollbars and user control
-
if you create a user control and add a vertical and horizontal scrollbar. You set the tabstop of both scrollbars to false and set the tabstop of the usercontrol to true. If you hit any arrow keys or pageup/down then the scrollbars flash forever. Even if you force the focus back to the usercontrol (which goes back and forth like 9 times till it gives up) then you still have the arrow key stuck to whatever scrollbar you affected first. what I am trying to figure out is how do you force the scrollbars to %100 ignore the keybaord %100 of the time. I never want the scrollbars to react to the keyboard at all no matter what. However, I want all keys to be handled in the user control. Anyone know how to go about doing this?
-
if you create a user control and add a vertical and horizontal scrollbar. You set the tabstop of both scrollbars to false and set the tabstop of the usercontrol to true. If you hit any arrow keys or pageup/down then the scrollbars flash forever. Even if you force the focus back to the usercontrol (which goes back and forth like 9 times till it gives up) then you still have the arrow key stuck to whatever scrollbar you affected first. what I am trying to figure out is how do you force the scrollbars to %100 ignore the keybaord %100 of the time. I never want the scrollbars to react to the keyboard at all no matter what. However, I want all keys to be handled in the user control. Anyone know how to go about doing this?
Look into the Autoscroll stuff in .NET. I know it's limited, but it's much easier than trying to make your own scrollable control using scrollbar controls (rather than the built-in window scrollbars).
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi -
Look into the Autoscroll stuff in .NET. I know it's limited, but it's much easier than trying to make your own scrollable control using scrollbar controls (rather than the built-in window scrollbars).
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhisorry I wasn't clear on my original question. Its not a matter of auto scrolling, its a matter of I need the arrow keys for other things. The fact that scrollbars exist on the usercontrol doesn't mean I want those scrollbars to own the arrow keys.