Fog Creek Software
Discussion Board

Welcome! and rules

Joel on Software

VScrollBar: Am I missing something here?

Hi all,

I've gone and placed a VScrollbar on an image control that I'm building.  I'd gotten it to play well with the mouse wheel and the page up/down keys.  The problem that I've encountered now is that pressing any of the arrow keys causes the control to steal focus(?) as represented by a flashing thumb.  The only way to regain control (as in, being able to use the keyboard to scroll) is to hit the tab key twice.

I've confirmed that this seems to be the default behavior by creating a new project, dropping a VScrollBar on it, running it and pressing an arrow key.

Short of rolling an extended version of this control (can't override the keypress event otherwise), any ideas?


Jose Bueno
Wednesday, May 11, 2005

*  Recent Topics

*  Fog Creek Home