473,473 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Turning off Bell

I've looked every where for this answer and it seems so simple of a
question. How do you disable the bell that dings when you press enter
in a .NET windows app text box?

Wiz

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 15 '05 #1
3 1843
"WizyDig" wrote:
How do you disable the bell that dings when you press enter in a .NET

windows app text box?

Add this handler to your text box' KeyPress event:

private void textbox1_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == '\r')
e.Handeled = true;
}

Petter
Nov 15 '05 #2
HAHAH!
You killed him!
Peter
Nov 15 '05 #3
Hey thanks Peter. That answer makes sense they alarm goes off to
indicate you pressed enter and you have to acknowledge you are handling
the press enter event. The documentation on the alarm is very sparse.

-Wiz

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Baza | last post by:
Am I right in thinking that >>>print "\a" should sound the system, 'bell'? B -- Computer says, 'no'
2
by: Steve Drake | last post by:
All, Sorry if this is the wrong group, but I could not find a good group for this question, so I chose a busy developer group. When you receive an alert from SHAREPOINT, the ICON shows a BELL...
7
by: Dave Hammond | last post by:
You'd think this was an occasionally asked question, but a search for previous related posts only turned up one from 1999, and that one was never anwered. So... When handling a keypress event,...
2
by: MLH | last post by:
This question, I apologize, is more of a math question than it is an Access question - I'm almost certain. The bell curve is another name for the normal distribution, which is a common type of...
3
by: Fred Nelson | last post by:
Hi: I have a vb.net web application running on an IIS server that has a sound card and VERY cheap speakers. I would like to know if there is a way to cause the speakers to make noice in the...
6
by: Csaba Gabor | last post by:
Is there a way in Mozilla/Firefox to ring the bell? For example, in Emacs or Notepad (on my Win XP Pro system) if you enter certain shortcuts (e.g. ^g or ^q, respectively), you get a sound to let...
3
by: Josh | last post by:
I want to get the ASCII Bell character (7) as a string. How? I'm pulliing my hair out over the stupid little task. HELP!!!!!!!!! ARRRAGGH! -- #####-----#####-----##### POV Tips and Hints at...
12
by: bluesteel | last post by:
I was asked to make a program which rang a bell at certain at certain moments. The one way i can think of making it is by using a loop, but i should try to avoid using it and i don't have any idea. I...
3
by: fadger07 | last post by:
Hello, I have a packard bell laptop and when i turn it on the windows loading screen comes on for about 3mins and then goes to the packard bell screen, then reboots and starts all over again. i...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.