使用图片框在Windowsform C#中创建按钮播放/暂停Windows Media Player
但是在使用事件时,单击图片框并检查是否对我不起作用!!!!
上传屏幕
https://screenshot.net/ky0rxc2
https://screenshot.net/odew2bp
private void pbx_Play_Pause_Click(object sender, EventArgs e)
{
if (btn_p.Image == Properties.Resources.play)
{
btn_p.Image = Properties.Resources.pause;
}
else
{
btn_p.Image = Properties.Resources.play;
}
}