日期:2014-05-20  浏览次数:20695 次

怎样播放音频文件
我用VS2005时用c#   语言时   想在WINFORM里播放音频文件怎么办啊。比如鼠标经过按钮时响音乐。

------解决方案--------------------
using System.Media;

private SoundPlayer Player = new SoundPlayer();

this.Player.SoundLocation = @ "C:\Windows\Media\chimes.wav ";
this.Player.Play();


*****************************************************************************
欢迎使用CSDN论坛专用阅读器 : CSDN Reader(附全部源代码)

最新版本:20070212

http://www.cnblogs.com/feiyun0112/archive/2006/09/20/509783.html