Hi Will,
Here is the code I"m using.
Cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
//yyou need this namespace
using System.Runtime.InteropServices;
//P/invoke declarations
[DllImport("winmm.dll")]
public static extern int sndPlaySound(string lpszSoundName , int uFlags)
;
[DllImport("user32.dll")]
private static extern bool MessageBeep(int type);
//You use them like this:
MessageBeep( -1);
sndPlaySound( "file_to_play.wav" , 0);
Will Pittenger said:
I have a C# application that I would like to notify the user of events with
sound. Is there a way to playback at least the standard sounds?