Results 1 to 3 of 3

Thread: Assigning pictures file to program dynamically.

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Location
    Malaysia
    Posts
    69
    Is it possible that I can choose which pictures files of the Image or PictureBox control to display during program runs instead assigning them during design time.

    I tried to assign the file to the image control Pictures properties but the type is not match. Somehow, the properties is looking for a numeric data and not a string type which is the path of my pictures.

    Thx.

  2. #2
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926
    Use LoadPicture for this
    Set Picture1.Picture = LoadPicture("C:\temp\Mypic.BMP")

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Location
    Malaysia
    Posts
    69
    Thanks.

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