How to Play mp3 in C#
how do I write a simple code in C# that 开发者_JAVA百科plays a mp3 file when i click a button.
If you System.Diagnostics.Process.Start the mp3 file by name, I would expect any associated player application - such as media player - to launch and play the file. Are you asking how to play an MP3 file without displaying a player?
You can use the Windows Media Player ActiveX control just fine.
精彩评论