using System.Runtime.InteropServices;
[DllImport("winmm.dll")]
public static extern bool PlaySound(string pszSound, int hmod, int fdwSound);
public const int SND_FILENAME = 0x00020000;
public const int SND_ASYNC = 0x0001;
PlaySound("login.wav", 0, SND_ASYNC | SND_FILENAME);
WinForm中播放声音
原文:http://www.cnblogs.com/ninestart/p/4760819.html