|
-
Aug 4th, 2002, 01:05 PM
#1
Thread Starter
Member
Changing the image in a picturebox with Code
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?
-
Aug 4th, 2002, 06:40 PM
#2
this works for me:
VB Code:
PictureBox1.Image = New Drawing.Bitmap("C:\somePic.bmp")
-
Aug 5th, 2002, 03:27 AM
#3
Member
Or you could use this method to support more file types
PictureBox1.Image = Image.FromFile("C:\logo.gif")
-
Aug 5th, 2002, 03:31 AM
#4
more file types?! eeeh, which supports what?
-
Aug 5th, 2002, 09:01 AM
#5
Drawing.Bitmap also support Gif, Jpeg, tiff, png, ico
-
Aug 5th, 2002, 08:31 PM
#6
Member
Opps, sorry about that.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|