Re: scrollbar bound to arrow keys
- From: "Morten Wennevik [C# MVP]" <MortenWennevik@xxxxxxxxxxx>
- Date: Tue, 04 Dec 2007 16:39:29 +0100
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?
On Mon, 03 Dec 2007 23:09:52 +0100, jonpb <nospam@xxxxxxxxxx> wrote:
Hi,
The arrow keys (up, down, left, right keys) are bound to the scrollbars
of my UserControl. For instance, if another control is in focus and I
press an arrow key the last scrollbar that had focus gets focus and it's
value changes with each press. Strangely enough, this even happens when
the scrollbars have .Visibility = false.
Is there a property that controls this behaviour? I can't find it.
Thanks
--
Happy coding!
Morten Wennevik [C# MVP]
.
- Follow-Ups:
- Re: scrollbar bound to arrow keys
- From: jonpb
- Re: scrollbar bound to arrow keys
- From: jonpb
- Re: scrollbar bound to arrow keys
- From: jonpb
- Re: scrollbar bound to arrow keys
- References:
- scrollbar bound to arrow keys
- From: jonpb
- scrollbar bound to arrow keys
- Prev by Date: Re: Access Violation in GDI+
- Next by Date: Help.ShowHelp not loading file the second time
- Previous by thread: scrollbar bound to arrow keys
- Next by thread: Re: scrollbar bound to arrow keys
- Index(es):