A Arne Janning Oct 17, 2004 #2 Hi Ricardo! how can I make a beep on the speakers??? I found it in vb but not in c#... Click to expand... http://groups.google.de/groups?threadm=#grQWBerBHA.2484@tkmsftngp03 Cheers Arne Janning
Hi Ricardo! how can I make a beep on the speakers??? I found it in vb but not in c#... Click to expand... http://groups.google.de/groups?threadm=#grQWBerBHA.2484@tkmsftngp03 Cheers Arne Janning
J Jochen Kalmbach Oct 17, 2004 #3 Ricardo said: how can I make a beep on the speakers??? I found it in vb but not in c#... Click to expand... Either reference the "Microsoft.VisualBasic.dll" assembly and call it there "Microsoft.VisualBasic.Beep" or use PInvoke in C#: [DllImport("user32.dll")] public static extern bool MessageBeep(int beepType); And call it with: MessageBeep(-1); See also: Using Win32 and Other Libraries http://msdn.microsoft.com/library/default.asp?url=/library/en- us/dncscol/html/csharp09192002.asp -- Greetings Jochen My blog about Win32 and .NET http://blog.kalmbachnet.de/
Ricardo said: how can I make a beep on the speakers??? I found it in vb but not in c#... Click to expand... Either reference the "Microsoft.VisualBasic.dll" assembly and call it there "Microsoft.VisualBasic.Beep" or use PInvoke in C#: [DllImport("user32.dll")] public static extern bool MessageBeep(int beepType); And call it with: MessageBeep(-1); See also: Using Win32 and Other Libraries http://msdn.microsoft.com/library/default.asp?url=/library/en- us/dncscol/html/csharp09192002.asp -- Greetings Jochen My blog about Win32 and .NET http://blog.kalmbachnet.de/