i am using the following code the give the next control on the form the focus when the enterkey is pressed. The good thing is that it works, the bad thing about it is that it produces an annoying sound every time the enter button is pressed.
Private Sub frmKlantInfo_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles MyBase.KeyPress
If Asc(e.KeyChar) = 13 Then
SendKeys.Send("{TAB}"
End If
End Sub
In vb6 you can resolve this by setting keyascii = 0. Is there a solution in .NET?
thnx for the help
Private Sub frmKlantInfo_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles MyBase.KeyPress
If Asc(e.KeyChar) = 13 Then
SendKeys.Send("{TAB}"
End If
End Sub
In vb6 you can resolve this by setting keyascii = 0. Is there a solution in .NET?
thnx for the help