Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tab Key in a MSFlexGrid

Status
Not open for further replies.

carlosweiss

Programmer
Sep 15, 2005
15
0
0
AR
Hi,

Is there any way to know which key is the last that has been pressed, independently of the event of a control? The KeyPress or KeyDown events of a command button or text box are not useful for me in this case, because I'm using a MSFlexGrid control, and the LostFocus event (triggered when I hit the tab key) doesn't receive the key pressed as parameter.

Any other way to handle the event of a Tab key in this MSFlexGrid control is also welcome.

Thanks,

Carlos
 
Hi, You can set the keypreview property in a form to TRUE. Then the key up event in the form willl trap what you are looking for I think.

Runals
 
It will, but only if all the controls on the form have their .tabstop property set to false.

zemp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top