VB 2005:  How to import sounds into Resources?

Posted on 2008-11-14
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
    LVL 12

    Accepted Solution

    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

    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

    I got it all!

    Featured Post

    Courses: Start Training Online With Pros, Today

    Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

    Join & Write a Comment

    This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
    Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
    This video discusses moving either the default database or any database to a new volume.
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    746 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

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now