how to get sound in our project using c sharp
hello friends today i tell you how to get system sound in your project
friends first you create a new project
Then you include using System.Media Namespace
coding--- if you want to get sound in your project so you write following code according to situation..
You write following code in Main method
There are five type of sound available in c#
1)SystemSounds.Hand.play();
2)SystemSounds.Beep.play();
3)SystemSounds.Astrik.play();
4)SystemSounds.Exclamation.play();
5)SystemSounds.Question.play();
you use all the five sounds according to situation
Thank you
No comments: