Hi,
You have to P?Invoke :
[DllImport("winmm.dll")]
public static extern int sndPlaySound(string lpszSoundName , int uFlags)
[DllImport("user32.dll")]
private static extern bool MessageBeep(int type);
Take a look at thos functions in the Windows API
Cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Hai Ly Hoang" <No*****@Mail.com> wrote in message
news:ee**************@TK2MSFTNGP11.phx.gbl...
In my application, i want to play a piece of music (wav or mp3). How to do
it ?