MessageBeep in .NET
Brad Abrams has a post called MessageBeep in the .NET Framework that shows how to trigger the Windows default sounds from C#.
Here's how to do it:
public enum MessageBeepType
{
Default = -1,
Ok = 0x00000000,
Error = 0x00000010,
Question = 0x00000020,
Warning = 0x00000030,
Information = 0x00000040,
}
[DllImport("user32.dll", SetLastError=true)]
public static extern bool MessageBeep(
MessageBeepType type
);
Posted by JoshC at July 22, 2003 7:44 AM
TrackBack URL for this entry:
http://www.joshchristie.com/weblog/mt/mt-tb.cgi/14
Listed below are links to weblogs that reference 'MessageBeep in .NET' from Josh Christie's Weblog.
http://www.joshchristie.com/weblog/mt/mt-tb.cgi/14
Listed below are links to weblogs that reference 'MessageBeep in .NET' from Josh Christie's Weblog.
Post a comment
