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)
 
Back
Top