How to kill the bell on a Form?

  • Thread starter Thread starter Paul Fredlein
  • Start date Start date
P

Paul Fredlein

Hi,

I have a simple form with a TextBox, I trapped the "Enter" key on the form
via Form1_click(..) and setting KeyPreview to true. But eveytime I press the
enter key when the TextBox has focus a "bell" rings how do I stop that? It's
the same for the "Escape" key.

Thanks,

Paul
 
you could try to trap the enter key on the form_keydown event instead of the
click

dont know if it will stop the bell (for some reason i have the windows
sounds off ;p )

hope it helps a bit

eric
 
Back
Top