Results 1 to 3 of 3

Thread: Changing Images.

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2007
    Posts
    85

    Changing Images.

    Hi guys, I'm having a little problem with my image box. I'm using a standard image box named "image1" and I'm attempting to change the image (that will have already been installed) with the following code:

    Code:
    Image1.Picture = "C:\Program Files\Common Files\Solumstone\OKB2.GIF"
    Image1.Visible = True
    Obviously, I'm doing something wrong, or going about changing the image the wrong way, can someone help?

    Syrillia.

  2. #2
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: Changing Images.

    Need to use LoadPicture function:
    Code:
    Image1.Picture = LoadPicture("C:\Program Files\Common Files\Solumstone\OKB2.GIF")

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Dec 2007
    Posts
    85

    Re: Changing Images.

    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