When I press Ctrl+other keys in a TextBox in VB 6.0, the system plays a beep sound.
How can I disable this in VB 6.0?
When I press Ctrl+other keys in a TextBox in VB 6.0, the system plays
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to capture the KeyPress event and change the KeyAscii code to 0 (you can do it conditionally, to only disable some of the “beep cases”).
Much like F.Aquino’s code, only that
KeyAscii = 13is for disabling beeps triggered by the Enter-key. Change the condition to match your case.