Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Making the sound play and stop in Visual Basic 2010 from a resource file?

I have a wav sound file called Q in the project resource. I have 2 buttons play and stop. What would be the code for each one? I used to have it set the other way but the sound wont play on others PCs.

Thanks

2 Answers

Relevance
  • 1 decade ago
    Favorite Answer

    Play button:

    My.Computer.Audio.Play(My.Resources.Q, AudioPlayMode.Background)

    Stop button:

    My.Computer.Audio.Stop

    Source(s): Me
  • Anonymous
    4 years ago

    Visual Basic Sound

Still have questions? Get your answers by asking now.