Windows Develop Bookmark and Share   
 index > Windows Forms General > Music
 

Music

hi there,

i need a help for my project at school, can u please help me, on how can i play a music on a windows application... thanks...

vilan749  Monday, July 02, 2007 12:00 PM

System.Media.SoundPlayer s = new System.Media.SoundPlayer();
s.SoundLocation = "your file path";
s.Play();

Your file should be a .wav file.

Geethanga  Monday, July 02, 2007 12:23 PM

System.Media.SoundPlayer s = new System.Media.SoundPlayer();
s.SoundLocation = "your file path";
s.Play();

Your file should be a .wav file.

Geethanga  Monday, July 02, 2007 12:23 PM

You can use google to search for other answers

Custom Search

More Threads

• Custom Config Declarations - Why the type data?
• delete element in bitmap
• outlook-like application layout
• How to hide or change color of splitter in SplitContainer?
• webbrowser, read the filled input fields
• AutoResizeColumns with a grid in a panel...
• WebBrowser w/o cookies
• Accessing cookies from response object
• Help needed for checklistbox
• VSTO What is required to deploy a Word Application