Hi Andy,
Thanks for your post!
It seems the .Net Framework doen't provided the MessageBeep() interface,
however I think it is not very complicated to load it via Win32 library.
The following article have told some reasons why the Framwork hasn't
provided managed interfaces to many common Win32 operations and have some
examples about how to call Win32 API in .NET programe, maybe you have
already read it.
Article: "Using Win32 and Other Libraries"
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/htm
l/csharp09192002.asp
Gary Chang
Microsoft Online Partner Support
Get Secure! –
www.microsoft.com/security
This posting is provided "AS IS" with no warranties,and confers no rights.
--------------------
| From: "Andy Bates" <
[email protected]>
| Subject: Where is MessageBeep?
| Date: Thu, 9 Oct 2003 22:33:52 +0100
| Lines: 16
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <
[email protected]>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| NNTP-Posting-Host: cpc3-farn1-6-0-cust68.glfd.cable.ntl.com 81.105.30.68
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:190389
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| I'm intrigued, MessageBox has gone to MessageBox.Show; but where is
| MessageBeep?
|
| I've trawled the help and cannot find any reference to it! The only
instance
| I've seen is using the following to import it from user32.dll:
|
| [DllImport("user32.dll")]
| public static extern bool MessageBeep(BeepType beepType);
|
| Surely MessageBeep cannot have been omitted from the framework.
|
| TIA
|
| - Andy
|
|
|