472,358 Members | 1,729 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,358 software developers and data experts.

How to "Beep"

Hi,

Can anybody tell me how to play a "beep" sound or any other sound at all in
C#?
I thought it would be easy but I have been searching up and down....

Thanks a lot.

Best regards,
Yee
Nov 16 '05 #1
4 3635
APG
YeeCN wrote:
Hi,

Can anybody tell me how to play a "beep" sound or any other sound at all in
C#?
I thought it would be easy but I have been searching up and down....

Thanks a lot.

Best regards,
Yee

Hi,

Here are some old links on this in the NGs.

http://groups.google.com/groups?hl=e...%40tkmsftngp05

http://groups.google.com/groups?hl=e...40TK2MSFTNGP12

HTH,
APG
Nov 16 '05 #2

This is pretty simple as in old C.

System.Console.Write("\a");

Just for a single beep in console application.

Simplicity is maintained :-)

--
Cheers,
Rahul Anand
-----Original Message-----
Hi,

Can anybody tell me how to play a "beep" sound or any other sound at all inC#?
I thought it would be easy but I have been searching up and down....
Thanks a lot.

Best regards,
Yee
.

Nov 16 '05 #3
Hi I have a simple example here
http://www.publicjoe.f9.co.uk/csharp/snip/snip001.html

Hope this helps

Publicjoe
C# Tutorial at http://www.publicjoe.f9.co.uk/csharp/tut.html
C# Snippets at http://www.publicjoe.f9.co.uk/csharp/snip/snippets.html
"YeeCN" <Xn************@pd.jaring.my> wrote in message
news:#C**************@TK2MSFTNGP09.phx.gbl...
Hi,

Can anybody tell me how to play a "beep" sound or any other sound at all in C#?
I thought it would be easy but I have been searching up and down....

Thanks a lot.

Best regards,
Yee

Nov 16 '05 #4
There's a beep function in VB and you can using the Interaction library
tocall it. You can also use the PlaySound api pointing to the beep wav
file.
"YeeCN" <Xn************@pd.jaring.my> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi,

Can anybody tell me how to play a "beep" sound or any other sound at all in C#?
I thought it would be easy but I have been searching up and down....

Thanks a lot.

Best regards,
Yee

Nov 16 '05 #5

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

Similar topics

2
by: Tim Marshall | last post by:
What is the docmd.runcommand accmd? for the equivalent of pressing the escape button when adding a record to a table? I'm setting up a bound form and would like to have a "cancel" button that...
11
by: Will | last post by:
I am looking at using a table with user names, passwords and user rights, which I would administer. I have read a lot about the shortfalls of this and the lack of security but the customer does...
16
by: PeteCresswell | last post by:
I was happily coding along, putting some calculation results (rolling annualized rates of return - too compute-intensive to calculate on-the-fly - had tb staged beforehand via a batch job) into...
4
by: BerkshireGuy | last post by:
Hello, I was looking at a Access query and noticed in the criteria it stated: In ('001','002') Can someone please explain what the In is? How does it different from Or? Thank you,
7
by: Aaron G via AccessMonster.com | last post by:
Wanted to share a solution to something which I didn't find on the net: EVERY form in my Microsoft Access 2002 database gave an error any time any code was to be called: form OnOpen, button...
22
by: campbellbrian2001 | last post by:
Thanks in Advance! ... I have two textboxes: 1 is visible (and gets its value based on the invisible textbox and displays either "Male" or "Female", and needs to display either male of female based...
3
by: jbsfe | last post by:
I have "Spilt" my database and the "lookup" and "seek" methods that previously worked, no longer do. I have learnd from reviewing the posts that the "lookup" and "Seek" methods cannot be used on...
42
by: usenet | last post by:
I'm still confused about this and I can't find anywhere that explains it properly. I have the MS book "Access 2003" in front of me and I'm reading Part 5 about VB and so on. It's telling me...
2
by: Simon Wigzell | last post by:
I have replaced all of my form checking alerts with a javascript routine that writes the error message into the form above the field where the error occurs. I would like it to make a similar...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
1
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. header("Location:".$urlback); Is this the right layout the...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...

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.