Disable Beep When User Press Enter In TextBox

'Insert the following code to your first form (named Form1):

Private Sub Text1_KeyPress(KeyAscii As Integer)
'If you want to do something when user press enter, for example:
'If KeyAscii = 13 Then MsgBox "Enter Pressed"
'Then put your line code before the following line.

If KeyAscii = 13 Then KeyAscii = 0
End Sub

Go Back