我今天的主要工作是编写关于暂停控件的代
private void button4_Click(object sender,System.EventArgs e)
{//暂停播放
if(this.axMediaPlayer1.FileName.Length>0)
this.axMediaPlayer1.Pause();
else
{
MessageBox.Show("请选择歌曲","信息提示",MessageBoxButtons.OK,MessageBoxIcon.Information);
}
}
原文:https://www.cnblogs.com/chenvc/p/9977845.html