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

tab key (keypress event)

Status
Not open for further replies.

rarubio1

Programmer
Jan 25, 2002
64
US
HELP!!!

I need to know what the ASCII code is for the tab key Keypress event.

Thanks,
RR
 
Thanks DrJavaJoe. I tried it and it still did not work. The following is a snippet of my code:

Private Sub cboCompanySave_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Or KeyAscii = 9 Then
LoadCboMaterialSave
End If
End Sub

Maybe you can let me know what I am doing wrong.

Thanks,
RR
 
Worked fine for me. Did you put a break point on the event and see what the value is for keyAscii?



Rob
 
If no control on the form can get focus from the tab keypress then the KeyPress event will be fired. So in the got focus of the combo set all of the TabStop properties in all of the controls to false, and then to true again in the Lost Focus.
 
Thank you both. I finally got it to work. I had to set 'TabStop = False' for all of the other controls just like you said DrJavaJoe and that did the trick.

RR
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top