The following code works for me to disable the ENTER beep in a text box
(it's in C# but should translate to VB.NET easily enough):
private void textBox2_KeyPress(object sender,
System.Windows.Forms.KeyPressEventArgs e) {
if (e.KeyChar == '\r') e.Handled = true;
}
Chris Jobson
"Jonathan Lee" <Jo*********@discussions.microsoft.com> wrote in message
news:71**********************************@microsof t.com...
I face to the same problem in VB .net. Below KB article does resolve the
problem in VB but not VB .net. Is there anyone can help?
How To Disable the ENTER Key BEEP in a VB Text Box
http://support.microsoft.com/default...b;en-us;140882
"Harry J. Smith" wrote:
Is there a way to disable sounds/beeper in a text box? In particular I
don't want to hear a beep when I hit the PgUp key in an empty
text box.
-Harry