|
-
Nov 20th, 2002, 02:33 PM
#1
Thread Starter
New Member
Dynamic Picturebox
Hi!
I'm trying to load a picture into a picturebox on my form at runtime. The picture has to change with the click of a button. How do I do this? I'm retrieving data from an Access database, one of the fields contains a reference to a jpg file. How do I load the pciturebox with the new picture every time I change?
Please help!!
Dean
-
Nov 20th, 2002, 02:51 PM
#2
Hyperactive Member
PictureBox.Image = System.Drawing.Image.FromFile("picturefile.jpg")
-
Nov 20th, 2002, 02:54 PM
#3
PowerPoster
Dim a As Bitmap
a = New Bitmap("thefilepathstring")
PictureBox.Image = a
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
|