I'm having a problem using embedded image resource file. I have added a .jpg file as an embedded resource and set the build action on the image to Embedded Resource. However when I use the follow code which I found on this forum, it returns the following error "Additional information: 'null' is not a valid value for 'stream'." the code that I am using is this
Has anyone got any ideas???
Thanks
Simon
Visual Basic:
Dim myAssem As [Assembly]
myAssem = [Assembly].GetExecutingAssembly()
Dim s As System.IO.Stream
s = myAssem.GetManifestResourceStream("EmbeddedResources.logo.jpg")
imgLogo.Image = New Bitmap(s)
Has anyone got any ideas???
Thanks
Simon