摘要:
1.在windows程序下,可使用如下代码播放ResourceManager rm = new ResourceManager( "WindowsFormsApplication1.Form1" , Assembly.GetExecutingAssembly() ); SoundPlayer sndplayr = new SoundPlayer( rm.GetStream( "ErrorSound" ) );sndplayr.Play();其中WindowsFormsApplication1为命名空间,Form1为资源文件所在类,ErrorSound为声 阅读全文