Solved

Play system audio sound

Posted on 2006-07-20
3
239 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 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

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…
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…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

739 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