Microsoft KB Archive/171733

= PRB: FlexGrid Control Doesn't Trap Arrow Keys =

Article ID: 171733

Article Last Modified on 1/8/2003

-

APPLIES TO


 * Microsoft Visual Basic 5.0 Professional Edition
 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 5.0 Enterprise Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition

-



This article was previously published under Q171733



SYMPTOMS
The KeyUp and KeyDown events of the Flexgrid control do not trap the Arrow keys. This affects the arrow keys on the numeric keypad as well as the "stand-alone" arrow keys.



CAUSE
The Flexgrid control responds to the arrow keys to change the selection, therefore they are not passed to the key events.



RESOLUTION
There are no workarounds at this time.



STATUS
This behavior is by design.



Steps to Reproduce Behavior
 Turn the NumLock setting on your keyboard off. Create a new Visual Basic project, Standard Exe. Place a FlexGrid control on the new default form.  In the KeyUp event of the FlexGrid control, place the following code: Msgbox KeyCode  Run the form, and click on the FlexGrid control.</li> Press any arrow key and note that the message box does not appear.</li> Press any other key and observe that the message box appears. (Hint: use the mouse to close the message box.)</li></ol>

Additional query words: kbVBp500 kbVBp600 kbVBp kbdsd kbDSupport kbControl

Keywords: kbprb KB171733

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.