Results 1 to 3 of 3

Thread: Change picture at run-time

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 1999
    Posts
    161

    Question

    I have a picturebox in a form. Based on the result of some operation, I want this picture to change. Either by always pointing the PictureBox to a file that would change content, or by pointing the PictureBox to various files.

    How to I format the information to pass the new picture to the Picture property of the PictureBox object ? I tried the full path as a string... doesn't work...

    Anyone can help ?

  2. #2
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    461
    Code:
    PictureBox.Picture = LoadPicture("C:\Path\Mypicture.gif")

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    May 1999
    Posts
    161

    Thumbs up Thanks!

    I knew it would be simple....

    Thanks again !

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