Disable that Beep while pressing the “Enter/Return” key in a Textbox VB5/6
Tuesday, September 11th, 2007
'VB 5.0/6.0
'Copy and Paste this code in your Textbox_KeyPress() event.
If KeyAscii = 13 Then
KeyAscii = 0
End If
Popularity: 19% [?]
Popularity: 19% [?]
Disable ‘Beep’ in Textbox control when pressing the ‘Enter’ Key - .NET 05/08 [Method #1]
Monday, June 18th, 2007
'This code will disable the 'Beeping' you get when you press the 'Enter' key in a Textbox control. This code needs to go into the Textbox_KeyDown' event.
If e.KeyCode = Keys.Enter Then
e.SuppressKeyPress = True
End If
Popularity: 14% [?]
Popularity: 14% [?]
