generate a 'click' sound?

C

cyberco

How can I generate a click-sounds when a user clicks on one of my
controls? Is there something like system beeps?

WM5
..NETCF2.0
 
P

Peter Foot [MVP]

You can P/Invoke MessageBeep API to play standard system files.
e.g.

[DllImport("coredll.dll", EntryPoint="MessageBeep", SetLastError=true)]
private static extern void MessageBeep(int type);

Call using:-

MessageBeep(0);

Peter
 

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

Top