English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

in an text box if the user press enter the focus must go to the next text box , i wrote the following code


Private Sub Text1_KeyPress(KeyAscii As Integer)
Text2.setfocus
End Sub

if it focusing to text2 but an sound is coming when ever i press enter in text1

is it an error sound

if not give me the code to do so

2006-07-08 02:41:29 · 1 answers · asked by Anonymous in Computers & Internet Programming & Design

1 answers

Private Sub Text1_KeyPress(KeyAscii As Integer)
if KeyAscii =vbKeyReturn then
Text2.setfocus
End If
End Sub

2006-07-08 03:59:55 · answer #1 · answered by Piyush 2 · 0 0

fedest.com, questions and answers