每日站立会议 11.19

写关于停止控件的代码

private void button5_Click(object sender,System.EventArgs e)
{//停止播放
if(this.axMediaPlayer1.FileName.Length>0)
this.axMediaPlayer1.Stop();
else
{
MessageBox.show("请选择歌曲","信息提示",MessageBoxButtons.OK,MessageBoxIcon.Information);
}
}
posted @ 2018-11-19 22:15  未辰vc  阅读(105)  评论(0)    收藏  举报