-
Howdy!
OK an easy question
I have two text boxes on a form
Text1
Text2
if i write something in text1 then press enter to set the focus to Text2 I get a BEEP!
If I use the TAB key I get no beep, But If I use sendKeys Command for the TAB button, I get the BEEP again.
HOW DO I STOP ALL BEEPING IN MY PROJECT (vb6.0)
THANX
-
1: create a command button with visible = false and default = true. write no code in its click event. this will eradicate beeping.
2: use SetFocus instead of SendKeys to set focus on your textbox.
-
2. I tried setfocus before and it didn't help
I'll try your first suggestion.
Thanx
-
set the text boxes to multiline and:
Code:
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
KeyAscii = 0 'ignore the keypress
Text2.SetFocus
End If
End Sub
-