Results 1 to 5 of 5

Thread: Image Problem

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2002
    Posts
    78

    Image Problem

    I am creating a variable to hold the name of the image that I want another image to change to. Ok, dont worry about that, it is spitting me back an error. Heres code:
    VB Code:
    1. Dim x As Image
    2. Private Sub FORM_LOAD()
    3. x = Image27
    4. End Sub
    This is spitting back the dreaded "Object or with block variable not set". ????? Please help...

    Thanks,
    AnT

  2. #2
    Lively Member Professor29's Avatar
    Join Date
    Feb 2002
    Posts
    89
    Why don't you just put an invisible image box on the form containing the picture?
    ERROR: No keyboard detected. Hit F1 to continue.

  3. #3
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    Try:

    VB Code:
    1. Set x = Image27
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Sep 2002
    Posts
    78
    Thanks, that works

  5. #5
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    Originally posted by AnT
    Thanks, that works
    You're welcome.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

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