ribsa3
Programmer
- Jun 17, 2003
- 56
Hi,
I was wondering how I can disable the beep when enter is pressed within a textbox. I am currently handling the enter-event with the following snippet of code and would do well with squelching the bell in there:
Private Sub txtCustNo_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtCustNo.KeyPress
If (e.KeyChar = Microsoft.VisualBasic.ChrW(13)) Then
' Have fun here
End if
End Sub
--------------------------------------------------------------------
Do what you wish, as long as it harms no one. That includes yourself.
I was wondering how I can disable the beep when enter is pressed within a textbox. I am currently handling the enter-event with the following snippet of code and would do well with squelching the bell in there:
Private Sub txtCustNo_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtCustNo.KeyPress
If (e.KeyChar = Microsoft.VisualBasic.ChrW(13)) Then
' Have fun here
End if
End Sub
--------------------------------------------------------------------
Do what you wish, as long as it harms no one. That includes yourself.