I've got a control inheriting from UserControl, with a scrollbar docked to
the right. I'm using KeyUp on my control to capture cursor keys and move
things about the control accordingly (I've override the OnPaint method on my
control, and use that to draw). This works great, but the cursor keys *also*
scroll the scrollbar. Is there any way I can stop this? When the items I'm
moving about my control hit the bottom, I'll increase the Value of the
scrollbar myself, but I just don't want it capturing cursor keys from it's
container (my control).
I've tried setting .Handled to true in the event handler, but (probably
because event handlers are called after the base methods?) it doesn't stop
:-(
--
Daisy The Cow
Now playing: Jamiroquai - Little L
the right. I'm using KeyUp on my control to capture cursor keys and move
things about the control accordingly (I've override the OnPaint method on my
control, and use that to draw). This works great, but the cursor keys *also*
scroll the scrollbar. Is there any way I can stop this? When the items I'm
moving about my control hit the bottom, I'll increase the Value of the
scrollbar myself, but I just don't want it capturing cursor keys from it's
container (my control).
I've tried setting .Handled to true in the event handler, but (probably
because event handlers are called after the base methods?) it doesn't stop
:-(
--
Daisy The Cow
Now playing: Jamiroquai - Little L