Subscribe to Get Free Material Updates!
Visit my new blog WebData Scraping - Web Scraping Service provider company in India.

How to play sound in c sharp?



Simple steps to play sound in C#:

  1. Open Visual Stdio-> Create new C# Project.
  2. Add references System.Media.
  3. Take one Command Button and drag on to Form.
  4. On Click event of Command Button write following Code. 

SoundPlayer SP = new SoundPlayer(@"c:\WINDOWS\Media\chimes.wav");
SP.Play();


For Step by Step Tutorial visit:
How to play sound in C#?
 

0 comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...

 
Design by Wordpress Theme | Bloggerized by Free Blogger Templates | coupon codes