Hi, I'm using WindowsForm and I want to pass throu all textboxes with Enter (like using Tab).
This code do things I want
Private Sub Form6_KeyDown(sender As Object, e As KeyEventArgs) Handles Me.KeyDown
If e.KeyCode = Keys.Enter Then
Me.SelectNextControl(Me.ActiveControl, True, True, True, False)
End If
End Sub
However, hitting Enter, system produces soud. I try to disable sound with this line of code e.SuppressKeyPress = True
and it works. Problem is, using this code changes Enter stroke behaviour. I cant sellect value from Combobox with enter, or type in few characters to select value I want. Everithing is working without this SuppressKeyPress ? Can someone suggest a better way to disable system sounds, appearing on Enter key (textbox single line)?