Textbox KeyUp event prevent annoying beep when enter is pressed.
Posted on 2005-05-11
Hi there, I have a single line textbox calls txtOut and in the KeyUp event I have the following code:
Private Sub txtOut_KeyUp (KeyCode As Integer, Shift as Integer)
If KeyCode = 13 Then
As you can see the code calls the click event of the cmdSend button should the user press the return key whilst their focus is in the txtOut text box, however if they do this a small annoying beep is sounded (presumably as they are pressing return in a single line textbox and vb is notifying them that they shouldn't do this). Is there anyway to prevent this beep from sounding?