using embedded resource in runtime

  • Thread starter Thread starter guy
  • Start date Start date
G

guy

how do i refrence an image name "BackDrop.jpg" which i've
added to the project as an embedded resource in runtime?
 
guy said:
how do i refrence an image name "BackDrop.jpg" which i've
added to the project as an embedded resource in runtime?


dim img as image
dim st as stream

st =
System.Reflection.Assembly.GetExecutingAssembly.GetManifestResourceStream("r
ootnamespace.BackDrop.jpg")
img = Image.FromStream(st)
 

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

Back
Top