PC Review


Reply
Thread Tools Rate Thread

how do I get TextBox to never beep?

 
 
Bob
Guest
Posts: n/a
 
      11th Aug 2004
TextBox beeps on Control+Key presses that I need to capture at the form
level. I can stop the beeps by 'handling' them in a TextBox inheritor, but
then the form can't capture them and I have to either raise special events
and recursively search all form controls to handle those or cause the
control to try to notify its form (actually, the MDI parent) directly. Both
of these methods are ugly, I'm hoping someone can point me to an obscure
TextBox option to shut off its lovely beeping "feature".

Bob

P.S. No, I can't use RichTextBox because it doesn't give a proper
FixedSingle border, and I can't get .Net to reliably make a custom
FixedSingle control border with NCPaint.

 
Reply With Quote
 
 
 
 
One Handed Man \( OHM - Terry Burns \)
Guest
Posts: n/a
 
      11th Aug 2004
You can set the Forms KeyPreview to true. This way the form will see these
keystrokes first.

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing

"Bob" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> TextBox beeps on Control+Key presses that I need to capture at the form
> level. I can stop the beeps by 'handling' them in a TextBox inheritor, but
> then the form can't capture them and I have to either raise special events
> and recursively search all form controls to handle those or cause the
> control to try to notify its form (actually, the MDI parent) directly.

Both
> of these methods are ugly, I'm hoping someone can point me to an obscure
> TextBox option to shut off its lovely beeping "feature".
>
> Bob
>
> P.S. No, I can't use RichTextBox because it doesn't give a proper
> FixedSingle border, and I can't get .Net to reliably make a custom
> FixedSingle control border with NCPaint.
>



 
Reply With Quote
 
Bob
Guest
Posts: n/a
 
      11th Aug 2004
Thanks, that works well OnKeyPress.

Bob

"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in message
news:(E-Mail Removed)...
> You can set the Forms KeyPreview to true. This way the form will see these
> keystrokes first.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Textbox beep Enter and MaxLength Mic Microsoft VB .NET 0 22nd Mar 2007 06:57 PM
Textbox Enter-key Beep moondaddy Microsoft Dot NET Framework Forms 2 12th Aug 2005 05:08 AM
Re: textbox keypress event beep Cor Ligthert Microsoft Dot NET 0 12th Apr 2004 07:31 PM
TextBox Beep on Enter Key Rob Windsor [MVP] Microsoft Dot NET Framework Forms 5 26th Mar 2004 04:29 AM
Beep in textbox when ENTER Raffe Microsoft Dot NET Framework Forms 1 31st Oct 2003 12:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:50 PM.