|
-
June 18th, 2002, 01:53 PM
#1
How to invoke message beep in C#?
Either in calling C# APIs or invoking Win32 API - I am new for C#.
Thanks,
Ming
-
June 27th, 2002, 11:12 AM
#2
You can call the API in C# like this:
using System.Runtime.InteropServices;
class ...
{
[DllImport("kernel32.dll")]
public static extern bool Beep(int Frequency, int Duration);
public SomeFunctionToBeep ...
{
Beep(250, 250);
}
}
Enjoy!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|