-
I got a couple of textbox controls for user to type in. After typing in each box, The user hits "enter" key to go next box. This is done as follow:
Code:
sub textbox1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
sendKeys "{TAB}"
End If
End Sub
But a beep sound comes with "enter" hit. How to avoid it? Thanks for your help
-
Hello,
Use the following,
Code:
Private Sub textbox1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
KeyAscii = 0
SendKeys "{TAB}"
End If
End Sub
Hope it helps,
Desire.