G
Guest
This should be simple. Converting an app where the users expect the Enter
key to take them to the next textbox. So in the Forms KeyPress event I have
the following code:
If e.KeyCode = Keys.Enter Then
If e.Shift Then
SendKeys.Send("+{TAB}")
Else
SendKeys.Send("{TAB}")
End If
e.Handled = True
End If
This works as I would have expected, except for one minor detail...the
system 'Beeps' when the the Enter key is pressed. There is no beep when the
Tab key is pressed. What is causing this and what can I do to stop it?
Terry
key to take them to the next textbox. So in the Forms KeyPress event I have
the following code:
If e.KeyCode = Keys.Enter Then
If e.Shift Then
SendKeys.Send("+{TAB}")
Else
SendKeys.Send("{TAB}")
End If
e.Handled = True
End If
This works as I would have expected, except for one minor detail...the
system 'Beeps' when the the Enter key is pressed. There is no beep when the
Tab key is pressed. What is causing this and what can I do to stop it?
Terry