I thought I'd posted this somewhere...
Oh well
This might sound like a stupid question but im a newbie so bear with me
How do I make a button change the image in a picture box?
How do i set the image property from code?
Printable View
I thought I'd posted this somewhere...
Oh well
This might sound like a stupid question but im a newbie so bear with me
How do I make a button change the image in a picture box?
How do i set the image property from code?
this works for me:
VB Code:
PictureBox1.Image = New Drawing.Bitmap("C:\somePic.bmp")
Or you could use this method to support more file types
PictureBox1.Image = Image.FromFile("C:\logo.gif")
more file types?! eeeh, which supports what?
Drawing.Bitmap also support Gif, Jpeg, tiff, png, ico
Opps, sorry about that.
:D