If you want to get an image from your hard disk just use:
Button1.Image = Image.FromFile("c:\1.jpg")
If it's an Embedded Resource you can get it from the Assembly
Dim p As System.Reflection.Assembly
p = System.Reflection.Assembly.GetExecutingAssembly()
Button1.Image = Image.FromStream(p.GetManifestResourceStream(Me.GetType(),
"1.jpg"))
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.