sound

how to play a wave sound when the button is click

Answer this question

sound

  • saruna

    You can also look at this Sample http://samples.gotdotnet.com/quickstart/CompactFramework/doc/playsounds.aspx that shows the use of Pinvoke to call a the native code to play sound.

    Or you can use the Libraries OpenNETCF has as Ilya suggested.

    Amit


  • birch9397

    I guess I'm too new to understand the responses to these posts, but I am thinking about adding a wav sound to an event (button click) in my Smart Device app. I am writing in VB.net 2005 for the Smartphone 2003 SE. I would like to embed the file in the project, which I think I can follow, but how to add the code to play the sound is confusing, as well as where to place my file name within the code samples. (It is my first Smart Device app, and I just taught myself VB, much less the Compact Framework, so I apologize in advance for the newbieness of my posts...)

    Thanks in advance to anyone who tries to help me out here. ;)

    SonicSue



  • Oren123

    Hi Amit,

    OpenNETCF ... am not sure what this is. Can u please provie some more information about this and the classes we have in this.

    Thanks

    Venugopal.B


  • Fabio Casadei

    OpenNetcf.Org has sound classes. If you don’t want to use it, you can take a look at the code and implement P/Invoke yourself.< xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />



  • sound