| View previous topic :: View next topic |
| Author |
Message |
Rory Walsh Guest
|
Posted: Sun Feb 26, 2006 2:03 am Post subject: preventing a beep.... |
|
|
Hi everyone. I have a program where if a user types enter into a TEdit
on form2 it closes form2 and the returns to form1. The thing is that
every time I hit enter to close form2 I get a system notification sound?
Is there any way to get rid of this? Perhaps an alternative to Close(),
the method I'm using to close the form. Thanks in advance.
Rory. |
|
| Back to top |
|
 |
Jonathan Benedicto Guest
|
Posted: Sun Feb 26, 2006 2:03 am Post subject: Re: preventing a beep.... |
|
|
Rory Walsh wrote:
| Quote: | Hi everyone. I have a program where if a user types enter into a TEdit on
form2 it closes form2 and the returns to form1. The thing is that every
time I hit enter to close form2 I get a system notification sound? Is
there any way to get rid of this? Perhaps an alternative to Close(), the
method I'm using to close the form. Thanks in advance.
|
Set Key = 0 in the OnKeyxxx event.
HTH
Jonathan |
|
| Back to top |
|
 |
Vladimir Stefanovic Guest
|
Posted: Sun Feb 26, 2006 9:03 am Post subject: Re: preventing a beep.... |
|
|
| Quote: | Set Key = 0 in the OnKeyxxx event.
|
I think this will work only in OnKeyPress event:
http://tinyurl.com/n5ao2
--
Best Regards,
Vladimir Stefanovic |
|
| Back to top |
|
 |
Jonathan Benedicto Guest
|
Posted: Mon Feb 27, 2006 2:03 pm Post subject: Re: preventing a beep.... |
|
|
Vladimir Stefanovic wrote:
Oh, ok. I never investigated this, simply added Key = 0 to OnKeyDown,
OnKeyPress and OnKeyUp :-)
Jonathan |
|
| Back to top |
|
 |
|