日期:2014-05-18 浏览次数:21366 次
private void button1_Click(object sender, EventArgs e) { BackgroundWorker bw = new BackgroundWorker(); bw.DoWork += new DoWorkEventHandler(bw_DoWork); bw.RunWorkerAsync(); } void bw_DoWork(object sender, DoWorkEventArgs e) { //throw new NotImplementedException(); SoundPlayer sp = new SoundPlayer(@"d:\1.wav"); sp.Play(); }