Results 1 to 5 of 5

Thread: mouseover image changing

  1. #1

    Thread Starter
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111

    Post

    I need to have my image to change when my mouse goes over it BUT i need it to go back when you take it off. Mouseover and a timer don't work. Putting it back to default when ever your mouse goes over another object is bad cuz it gets stuck if they quickly scroll over it then onto the background.
    lil help?

    ------------------
    DiGiTaIErRoR

  2. #2
    Hyperactive Member Juan Carlos Rey's Avatar
    Join Date
    Aug 1999
    Location
    Mendoza, Argentina
    Posts
    301

    Post

    Do not change your image, it is best to have two images on the same location, one of them invisible. On the Mouseover event of Image1, make Image2 visible.

    I put the images on a frame. On the Mouseover event of the frame, make Image2 invisible again which restores image1.

    If you have an array of images and you want to hilight one of them, like the toolbar in Internet Explorer, each time you get the mouse over one of them, do a for-next loop and make all others invisible. This prevents errors due to rapid rodent movements.


  3. #3

    Thread Starter
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111

    Post

    I was going to use two picturebox's make one invisible other show. BUT you would need to put picturebox1.visible = true picturebox2.visible = false in all the other things cuz I don't want to do all that coding even if I made a sub.... any help?

    ------------------
    DiGiTaIErRoR

  4. #4
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800

    Post

    i use the mousemove command:
    (Image1.Mousemove)
    Image2.visible = true

    (Form1.mousemove)
    Image2.Visible = false

    The only problem, is that that is pretty slow, so if you have a lot of labels and other images, image2 can get stuck on your sreen until you touch the form.

    Steve

  5. #5
    Hyperactive Member Gimpster's Avatar
    Join Date
    Oct 1999
    Location
    Redmond, WA 98052
    Posts
    331

    Post

    I did the same thing one time and what I ended up doing was just surrounding the picture with a blank label, so that you couldn't see it. Then on the mouseover event for the label, all you have to do is program it to set the picture back to it's normal state.

    ----------------------
    Ryan
    [email protected]
    ICQ# 47799046

    [This message has been edited by Gimpster (edited 12-17-1999).]

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