Simple steps to play sound in C#:
- Open Visual Stdio-> Create new C# Project.
 - Add references System.Media.
 - Take one Command Button and drag on to Form.
 - On Click event of Command Button write following Code.
 
SoundPlayer SP 
= new SoundPlayer(@"c:\WINDOWS\Media\chimes.wav");
SP.Play();
SP.Play();
For Step by Step Tutorial visit:
| How to play sound in C#? | 



 Posted in:  
0 comments:
Post a Comment