[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Play system audio sound

Posted on 2006-07-20
3
Medium Priority
?
242 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 23

Accepted Solution

by:
apresto earned 2000 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

649 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