不懂的怎么编写一个循环播放...用time1的方法本人还是写不出来-_#
请高手帮帮...
不懂的怎么编写一个循环播放...用time1的方法本人还是写不出来-_#
请高手帮帮...
private void axWindowsMediaPlayer1_PlayStateChange(object sender, AxWMPLib._WMPOCXEvents_PlayStateChangeEvent e)
{
if (axWindowsMediaPlayer1.playState == WMPLib.WMPPlayState.wmppsMediaEnded)
timer1.Start();
}
private void timer1_Tick(object sender, EventArgs e)
{
listBox2 .SelectedIndex++;
axWindowsMediaPlayer1.URL = listBox2.SelectedIndex.ToString();
}
这样为什么还是不行啊?帮帮我啊
private void axWindowsMediaPlayer1_PlayStateChange(object sender, AxWMPLib._WMPOCXEvents_PlayStateChangeEvent e)
{
if (axWindowsMediaPlayer1.playState == WMPLib.WMPPlayState.wmppsMediaEnded)
timer1.enable=true; }
private void timer1_Tick(object sender, EventArgs e)
{
timer1.enable=false;
listBox2 .SelectedIndex++;
axWindowsMediaPlayer1.URL = listBox2.SelectedIndex.ToString();
}
代碼隨手寫的