Results 1 to 3 of 3

Thread: Re: Change Image boxes dynamically

  1. #1
    Guest

    Question

    When a user clicks on a CommandButton, I want an image to change, but I keep getting type mismatch errors. Here is my code:

    Private Sub cmdTest_Click()
    Image1.Picture =("C:\My Documents\TestIco.bmp")
    End Sub

    The path is correct, but I feel that I am missing something.

    Mike

  2. #2
    Guest

    the correct Code

    Private Sub cmdTest_Click()
    Image1.Picture =LoadPicture("C:\My Documents\TestIco.bmp")
    End Sub

  3. #3
    Guest
    Thanks, that worked!

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