473,770 Members | 1,833 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Bell Character

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/
May 31 '06 #1
3 13606
Josh,

You can do this:

string bell = new string((char) 7, 1);

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Josh" <s@a.com> wrote in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
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/

May 31 '06 #2
Hi Josh,
I want to get the ASCII Bell character (7) as a string. How?


Try this:

char bell = '\a'; // a for alert

or this:

char bell = '\u0007';

See these pages for details:

http://msdn.microsoft.com/library/de...spec_2_4_4.asp

http://msdn.microsoft.com/library/de...spec_2_4_1.asp

Good luck!

--
Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
ja***@removethi s.dystopia.fi
http://www.saunalahti.fi/janij/
May 31 '06 #3
Thank you very much. I knew it had to be simple but my books and Google
were not doing it for me! Thanks, now all I need is some glue for my hair.

--
#####-----#####-----#####
POV Tips and Hints at ...
http://povman.blogspot.com/
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote in
message news:Of******** ******@TK2MSFTN GP04.phx.gbl...
Josh,

You can do this:

string bell = new string((char) 7, 1);

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Josh" <s@a.com> wrote in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
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/


May 31 '06 #4

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

Similar topics

9
12245
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
2316
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
1857
by: WizyDig | last post by:
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!
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
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
9617
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
10257
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10099
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
10037
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6710
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
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
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
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2849
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.