C#在登入窗口隐藏以后开启了音乐 }
if (besult == true)
{
// MessageBox.Show("恭喜你成功登陆!");
this.Hide(); //播放背景音乐
System.Media.SoundPlayer s = new System.Media.SoundPlayer("I:\\班得瑞 - moment of fantasy.wav");
s.Play(); //显示理财窗口
licai lc = new licai();
lc.Show();
}
想在下一个窗口关闭(licai)时关闭音乐,代码怎么写呢?
if (besult == true)
{
// MessageBox.Show("恭喜你成功登陆!");
this.Hide(); //播放背景音乐
System.Media.SoundPlayer s = new System.Media.SoundPlayer("I:\\班得瑞 - moment of fantasy.wav");
s.Play(); //显示理财窗口
licai lc = new licai();
lc.Show();
}
想在下一个窗口关闭(licai)时关闭音乐,代码怎么写呢?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货