Results 1 to 3 of 3

Thread: Dynamic Picturebox

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2002
    Posts
    1

    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

  2. #2
    Hyperactive Member
    Join Date
    Jun 2002
    Location
    midewest u.s.
    Posts
    275
    PictureBox.Image = System.Drawing.Image.FromFile("picturefile.jpg")

  3. #3
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    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
  •  



Click Here to Expand Forum to Full Width