Tag Archives: suppress

Disable that Beep while pressing the “Enter/Return” key in a Textbox using VB6

Click Star to Rate Post
1 Star2 Stars3 Stars4 Stars5 Stars (5 votes, average: 5.00 out of 5)
 

This works with Visual Basic 6.0 and VB 5.0.

'VB 5.0/6.0

'Copy and Paste this code in your Textbox_KeyPress() event.

    If KeyAscii = 13 Then  

        KeyAscii = 0   

    End If