Play system audio sound



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)




LVL 4
brokeMyLegBikingAsked:
Who is Participating?
 
aprestoConnect With a Mentor Commented:
Hi brokeMyLegBiking,

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

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

Apresto
0
 
brokeMyLegBikingAuthor Commented:
great, thanks I like an easy solution.
0
 
aprestoCommented:
Me too :o)

THanks

apresto
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.