Re: scrollbar bound to arrow keys
- From: jonpb <nospam@xxxxxxxxxx>
- Date: Tue, 04 Dec 2007 12:07:26 -0800
I found the solution. I didn't realize the Keydown is not fired for control keys. The function you need to override is ProcessDialogKey. Returning true from this function signifies that the key has been processed and no further processing is performed.
Morten Wennevik [C# MVP] wrote:
Hi,.
Scrollbars do not automatically grab the arrow key events unless there is nothing else taking key input. Firing up a simple program with a HScrollBar and a button to switch visibility on the scrollbar I could not reproduce your problem. Once the scrollbar was invisible, it did not adjust the position when using the arrow keys.
Do you have custom binding or key handling that could interfere?
- References:
- scrollbar bound to arrow keys
- From: jonpb
- Re: scrollbar bound to arrow keys
- From: Morten Wennevik [C# MVP]
- scrollbar bound to arrow keys
- Prev by Date: Re: scrollbar bound to arrow keys
- Next by Date: CheckedListBox- default highlighted item- need to un-highlight
- Previous by thread: Re: scrollbar bound to arrow keys
- Next by thread: Re: Intercepting DeleteItem event
- Index(es):