Solved

Play system audio sound

Posted on 2006-07-20
3
238 Views
Last Modified: 2012-05-05


In VB.NET, playing a system sound is easy. Is there an easy way to do this in C#?

This is how it is done in VB.NET:
My.Computer.Audio.PlaySystemSound(Media.SystemSounds.Exclamation)




0
Comment
Question by:brokeMyLegBiking
  • 2
3 Comments
 
LVL 23

Accepted Solution

by:
apresto earned 500 total points
ID: 17145719
Hi brokeMyLegBiking,

http://blogs.msdn.com/csharpfaq/archive/2006/03/27/562557.aspx

i.e
System.Media.SystemSounds.Beep.Play();

Apresto
0
 
LVL 4

Author Comment

by:brokeMyLegBiking
ID: 17146949
great, thanks I like an easy solution.
0
 
LVL 23

Expert Comment

by:apresto
ID: 17146977
Me too :o)

THanks

apresto
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
send messages to whatsapp programatically 2 66
Hey!!!! 1 29
Expression Evaluater 3 38
VB.NET 2008 Winforms Signing 13 33
Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question