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

解决方案 »

  1.   

    using System.Media;private SoundPlayer Player = new SoundPlayer();                this.Player.SoundLocation = @"C:\Windows\Media\chimes.wav";
                    this.Player.Play();  
    *****************************************************************************
    欢迎使用CSDN论坛专用阅读器 : CSDN Reader(附全部源代码) 最新版本:20070212http://www.cnblogs.com/feiyun0112/archive/2006/09/20/509783.html
      

  2.   

    use windows media play component 
    when mouse over,open music file in over event