VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



StopTextBoxFromBeeping

by VB FAQ (6 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 3.0
Difficulty: Unknown Difficulty
Date Added: Wed 3rd February 2021
Rating: (38 Votes)

Show how to make a text box not beep but do something else when I hit the Enter key. This code example makes nothing happen, for an extended period of time:

Rate StopTextBoxFromBeeping

Sub Text1_KeyPress (KeyAscii As Integer) 

If KeyAscii = 13 Then '13 is Key_Return
KeyAscii = 0 
End If 

End Sub

Download this snippet    Add to My Saved Code

StopTextBoxFromBeeping Comments

No comments have been posted about StopTextBoxFromBeeping. Why not be the first to post a comment about StopTextBoxFromBeeping.

Post your comment

Subject:
Message:
0/1000 characters