111,129
社区成员
发帖
与我相关
我的任务
分享
public partial class Form1 : Form
{
WMPLib.WindowsMediaPlayer player = new WMPLib.WindowsMediaPlayer();
public Form1()
{
InitializeComponent();
string[] files = { @"c:\music\1.wma", @"c:\music\2.wma" }; //要播放的文件
foreach (string file in files)
player.currentPlaylist.appendItem(player.newMedia(file));
player.controls.play();
}
}