CodeItBetter Programming Another VB Programming Blog

How to use the Enter key act like TAB key while handling text boxes

Posted on January 5, 2009
1
2
3
4
5
6
7
8
9
10
11
12
'System & API - How to use the Enter key act like TAB key while handling text boxes

Option Explicit
 
'Add few Text Boxes to your Form.

Private Sub Text1_KeyPress(KeyAscii As Integer)
    If KeyAscii = 13 Then
        SendKeys "{TAB}"
        KeyAscii = 0
    End If
End Sub
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


 

No trackbacks yet.