这是按钮单击方法....但是代码给出了错误
“当前上下文中不存在 axWindowsMediaPlayer1”:(
请帮帮我。我想在单击按钮时播放音乐。
private void button8_Click_1(object sender, EventArgs e)
{
axWindowsMediaPlayer1.Visible = false;
axWindowsMediaPlayer1.URL = (@"C:\Users\DELL\Downloads\ringtones\Twilight Piano.m4r");
axWindowsMediaPlayer1.Ctlcontrols.play();
}
private void axWindowsMediaPlayer1_Enter(object sender, EventArgs e)
{
}