473,785 Members | 2,573 Online
Bytes | Software Development & Data Engineering Community
+ 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 1857
"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_KeyPre ss(object sender, KeyPressEventAr gs 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
12248
by: Baza | last post by:
Am I right in thinking that >>>print "\a" should sound the system, 'bell'? B -- Computer says, 'no'
2
448
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 on it, I want to-do the same when sending an email from .NET. Sharepoint does use SMTP to send, the same as .NET does (with system.web.mail), I have tried to add the correct headers :
7
1998
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, the terminal bell always rings (at least with Internet Explorer). While it's not a show-stopper, it can become annoying. Anyone have any tricks to silence the bell? Thanks in advance!
2
2317
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 graph that has more or less the shape of a bell. "The Bell Curve" was also the title of a book, a controversial book back in 1994. It was about intelligence. If you graph scores on an IQ test on the horizontal axis, and number of people who got...
3
2018
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 event that an event occurs that I want to be notified of. I don't care if they beep or play music. Any suggestions would be GREATLY appreciated!
6
6857
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 you know that from the app's point of view, something unexpected happened. Can I accomplish something similar in FF with javascript or via the keyboard? Thanks, Csaba Gabor from Vienna
3
13608
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 ... http://povman.blogspot.com/
12
2040
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 thought of looping, and when the time matched with the specified one, it rang the bell. I do not have it clear how to make it ring. They told me that i had to think of how to develop the program and they would think of how to make the bell ring when...
3
2863
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 really need help anybody?
0
9647
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9485
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10161
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7506
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5390
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5523
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4058
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3662
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.