Windows Mobile, Play click sound on button click

Posted on 2008-11-11
Medium Priority
Last Modified: 2013-12-27

I have a PDA application and i want to make the application play the standard click sound from windows when the user clicks buttons in my application, how can i do this ?
Question by:mSchmidt
1 Comment
LVL 24

Accepted Solution

alexey_gusev earned 2000 total points
ID: 22940117
you have few possibilities, e.g.

1) use Win32 API MessageBeep() wrapper, like that (look for the 2nd option and replace user32.dll by coredll.dll): http://csharparticles.blogspot.com/2005/03/beep-messagebeep.html

2) there are few 'playSound' APIs, also from coredll.dll, so you could wrap them as well

3) look e.g. here: http://www.experts-exchange.com/Programming/Languages/.NET/Visual_Basic.NET/Q_20969061.html


Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As the title indicates, I have done this before. It chills me everytime I update the OS on my phone, (http://www.experts-exchange.com/articles/18084/Upgrading-to-Android-5-0-Lollipop.html) because one time I did this and I essentially had a bricked …
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses
Course of the Month14 days, 17 hours left to enroll

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question