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.Ge tType(),
"1.jpg"))
Hth
Greetz Peter and happy holidays
--
Programming today is a race between software engineers striving to build
bigger and better idiot-proof programs, and the Universe trying to produce
bigger and better idiots. So far, the Universe is winning. (Rich Cook)
"Kalim Julia" <ka*********@gmail.com> schreef in bericht
news:es*************@TK2MSFTNGP12.phx.gbl...
Anybody knows, How to assign image on a button at runtime