Trying to disable the 'ding' sound when hitting enter from a textbox.
My code:
Private Sub StoreNumberBox_KeyUp(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles StoreNumberBox.KeyUp
If BackgroundWorker1.IsBusy Then
Exit Sub
Else
If e.KeyCode = Keys.Enter Then
ClearTextBox(Me)
PullIPs()
End If
End If
End Sub
Now, before I get a bunch of nasty grams. I googled the hell out of this issue, and all results came back to adding the following code:
Private Sub StoreNumberBox_KeyUp(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles StoreNumberBox.KeyUp
If BackgroundWorker1.IsBusy Then
Exit Sub
Else
If e.KeyCode = Keys.Enter Then
e.SuppressKeyPress = True 'add me
ClearTextBox(Me)
PullIPs()
End If
End If
End Sub
The above code makes no difference for me. Am I doing something wrong, or is there another option?