Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


VB 2005:  How to import sounds into Resources?

Posted on 2008-11-14
Medium Priority
Last Modified: 2013-11-26
Dear Experts:

I would like to learn how to import sounds (.wav) into the Resources folder.

Thanks a lot!
Question by:duta
  • 2
LVL 12

Accepted Solution

rgn2121 earned 2000 total points
ID: 22966123
Under your project in the Solution Explorer you can right click "My Project".  Then click "Resources", which will bring you to the view of your imported resources.  From the top of that window you should be able to click the first drop-down and choose "Audio" and then in the next drop-down select "Existing File" and browse to it.

I have never added any audio files, but that is basically how I add other resources.  Good luck..

Author Comment

ID: 22966150
Thank you so much for your kind, superprompt tip.

I could import the sound into the Resource folder by following your tip.

But the sound does not play.

I used the following code:
 My.Computer.Audio.Play (My.Resources.ari2).
ari2 refers to "ari2.wav" which has been imported into the Resources folder.

Thanks a lot!

Author Comment

ID: 22966160
I got it all!

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Question has a verified solution.

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

The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Screencast - Getting to Know the Pipeline

577 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