How can i play a song???

prakash77

Active member
Joined
Mar 12, 2010
Messages
29
Programming Experience
Beginner
hi, i want to play a song when i click a button.... it s possible means, pls give an overview or give link to video tutorial....... thnks n advance:D
 
The .NET Framework only has direct support for WAV files when it comes to audio. For anything beyond that you will have to use Windows Media Player, DirectX, MCI or some other unmanaged mechanism. WMP is probably the easiest option. You can add a WMP ActiveX control to your form or you can use a non-GUI class to do it all in code. I'm sure that there are examples around so a search should find you what you need.
 
Back
Top