Results 1 to 4 of 4

Thread: Changing the pic in an Image Box

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2001
    Posts
    3

    Question Changing the pic in an Image Box

    Hi all!

    I'm doing a quiz programm for a friend. The questions are stored in an access database. Each question has a corresponding bmp- or jpeg-picture. The filename of the corresponding pic is also stored in the database. Well i have figured out how to get the filename out of the database but my problem is:
    How do i tell the imagebox the name of the file. Since I'm completely new to imageboxes and pictureboxes I have no idea how to do this.
    The only thing I know is:
    imgFrage.picture = "desperado.bmp" does not work

    Thanks for any suggestions in advance

    Regards, Macharius

  2. #2
    Addicted Member hypnos's Avatar
    Join Date
    Aug 2000
    Location
    UK
    Posts
    183
    Code:
    Picture1.Picture = LoadPicture("C:\windows\Carved Stone.bmp")
    This will load one of the windows background pictures into a picture box called Picture1

    Hope it helps

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2001
    Posts
    3
    Everything works just fine.

    Thank you

    Regards,Macharius

  4. #4

    Thumbs up SWEET JESUS THANK YOU!

    I've been fighting with this for quite some time now thank you from the bottom of my poorly coded heart.

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