SoundPlayer sp; //音效 SoundPlayer BackSound;//背景音乐
都写在 private void Form1_Load(object sender, EventArgs e)
这里面试试
都写在 private void Form1_Load(object sender, EventArgs e)
这里面试试
解决方案 »
- 如何给VS2010 Express安装离线msdn?
- C# Dll调用问题
- 多媒体播放器获取文件
- c#中怎么将导入的文件的内容加到TextBox中
- 昨天押宝中了点分800分 特地散分。另问一个Active directory 的问题!!!
- 紧急!关于读取数码相机图片的问题?
- 高手请进!关于邮件接收解码!up有分!
- Winform程序应用了notifyicon托盘控件恢复窗口时出现的问题
- 看到一个制作在线帮助文档的工具
- 错误:“TextFile.Form1”没有合适的静态 Main 方法
- 在DataGridView中如何进行唯一性和非空约束处理
- (用c#怎么做)通过关键字查询,可以快速得到当前网站的关键字在Baidu/Google收录的排名情况!
private void pictureBox1_MouseEnter(object sender, EventArgs e)
{
sp = new SoundPlayer(System.AppDomain.CurrentDomain.BaseDirectory + @"Sound\大羊.WAV");
sp.Play();
}