Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21136

Tab KeyAscii not working

$
0
0
I'm trying to set the focus to Text4 whenever the tab key is pressed, while the focus is at Text1.
Why won't it work? :confused:

Code:

Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 9 Then
Text4.SetFocus
End If
End Sub


Viewing all articles
Browse latest Browse all 21136

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>