Re: scrollbar bound to arrow keys



To update, I was mistaken on the Visibility issue, I'm using a TableLayoutPanel and to hide the scrollbars I resize the column\row, so the scrollbars were still visible. In any case the question remains, is it possible to stop the scrollbars from trapping the arrow key events.

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?


On Mon, 03 Dec 2007 23:09:52 +0100, jonpb <nospam@xxxxxxxxxx> wrote:

Strangely enough, this even happens when
the scrollbars have .Visibility = false.

.


Loading