System Beep sounds

G

Guest

Hi,

I want to make my system beep when certain custom buttons are clicked. How
do I do this? Which classes do I use? Are there any utilities available for
WinCE.NET 4.1 or greater? or is this handheld specific?

Thanks in advance.
 
G

Guest

You need to do a P/Invoke to do this:

const uint MB_ICONHAND = 1;
const uint MB_ICONQUESTION = 32;
const uint MB_ICONEXCLAMATION = 48;
const uint MB_ICONASTERISK = 64;
const uint MB_ICONINFORMATION = 64;
const uint MB_ICONSTOP = 16;

[DllImport("coredll.dll")]
private static extern void MessageBeep(uint beepType);


now where ever u want to produce a beep just call MessageBeep with one of
the above const.


Ali Gardezi
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top