BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

preventing a beep....

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
Rory Walsh
Guest





PostPosted: Sun Feb 26, 2006 2:03 am    Post subject: preventing a beep.... Reply with 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.

Rory.
Back to top
Jonathan Benedicto
Guest





PostPosted: Sun Feb 26, 2006 2:03 am    Post subject: Re: preventing a beep.... Reply with quote



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





PostPosted: Sun Feb 26, 2006 9:03 am    Post subject: Re: preventing a beep.... Reply with quote



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





PostPosted: Mon Feb 27, 2006 2:03 pm    Post subject: Re: preventing a beep.... Reply with quote

Vladimir Stefanovic wrote:
Quote:
I think this will work only in OnKeyPress event:
http://tinyurl.com/n5ao2

Oh, ok. I never investigated this, simply added Key = 0 to OnKeyDown,
OnKeyPress and OnKeyUp :-)

Jonathan
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.