[DllImport("winmm.dll")]
public static extern long PlaySound(String fileName,long a,long b);
然后在程序里调用它FILENAME文件。
PlaySound("路径\am.wav",0,0);
名字空间不要忘记:
using System.Runtime.InteropServices;

解决方案 »

  1.   

    string static extern long PlaySound(string lpszName //声音文件
                                      long hModule   //模块句柄
                                        long DwFlags   //播放标志)
    具体内容看MSDN:
    ms-help://MS.VSCC/MS.MSDNVS.2052/multimed/mmfunc_9uxw.htm
    不好意思我也看得迷迷糊糊的:)