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

  • Thread starter Thread starter ray well
  • Start date Start date
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
 
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.
 
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.<<
 
Back
Top