J
Jay Banks
I know this was recently posted in reference to a textbox, but I'm
having a similar problem, and can't keep it from beeping. I'm using a
NumericUpDown control instead of a textbox. I've tried this code in the
KeyPress and the KeyDown events. None of the below code prevents the beep.
If e.KeyCode = Keys.Enter Then
e.Handled = True
...
End If
If e.KeyChar = vbCr Then
e.Handled = True
...
End If
If e.KeyChar = Chr(13) Then ' Same as above
e.Handled = True
...
End If
J.
having a similar problem, and can't keep it from beeping. I'm using a
NumericUpDown control instead of a textbox. I've tried this code in the
KeyPress and the KeyDown events. None of the below code prevents the beep.
If e.KeyCode = Keys.Enter Then
e.Handled = True
...
End If
If e.KeyChar = vbCr Then
e.Handled = True
...
End If
If e.KeyChar = Chr(13) Then ' Same as above
e.Handled = True
...
End If
J.