audio files, how do i store them in the apps exe file

R

ray well

hi,

i need to have a few short audio sound effect files with my app. i don't
want them to be standing by themselves external to the app exe, but want to
them stored in the app's exe file.

a long time ago, i once did something like this with vb5, where you had some
kind of resource file, which compiled into the apps exe file, and you could
access those resources from within the exe file itself.

i can't find documentation on how to do that in vb net? how do i do that in
vb net?

thanks for any help

ray

please respond to the list
 
C

Chris Dunaway

i need to have a few short audio sound effect files with my app. i don't
want them to be standing by themselves external to the app exe, but want to
them stored in the app's exe file.

Add the files to your project in the Solution explorer. Click on them and
set their Build Action to Embedded Resource. That should be what you want.
 
R

ray well

chris,

thanks for the info.

how would i access those resources. suppose i have a graphic file named
AGraphic.gif, and i have a pictuebox control named picHouse, when i make the
assignment 'picHouse.image=' how would i reference the embedded resource
AGraphic.gif?

thanks again,

ray

please respond to the list

set their Build Action to Embedded Resource. That should be what you
want.<<
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top