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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Detecting Tab Key Pressed

Status
Not open for further replies.

rushtome

Programmer
May 13, 2003
4
IN
hi,

can anybody help in tracing tab key pressed on a VB form.

any help will be appreciated

Thanks in advance

 
There are two ways that I know of.

1. You need to set the forms .keypreview property to true and set all the forms controls .tabstop (those which have it) property to false. Then you can trap for the tab key in the keydown or keyup event.

2. Use a windows hook. See thread222-279734 for foada's code and explanation.



Thanks and Good Luck!

zemp
 
hi, zemp

I had gone through Thread222-279734. It served my purpose.
Thanks for the information.

Thanks and Regards
rushtome
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top