摘要: 1.在windows程序下,可使用如下代码播放ResourceManager rm = new ResourceManager( "WindowsFormsApplication1.Form1" , Assembly.GetExecutingAssembly() ); SoundPlayer sndplayr = new SoundPlayer( rm.GetStream( "ErrorSound" ) );sndplayr.Play();其中WindowsFormsApplication1为命名空间,Form1为资源文件所在类,ErrorSound为声 阅读全文
posted @ 2011-04-29 12:02 朋克 阅读(1041) 评论(0) 推荐(0) 编辑