Click to See Complete Forum and Search --> : mouseover image changing
DiGiTaIErRoR
Dec 16th, 1999, 04:53 AM
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
Juan Carlos Rey
Dec 16th, 1999, 07:19 AM
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.
DiGiTaIErRoR
Dec 16th, 1999, 09:25 AM
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
SteveCRM
Dec 16th, 1999, 10:08 AM
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
Gimpster
Dec 16th, 1999, 10:23 PM
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
cornelsen@hotmail.com
ICQ (http://www.ICQ.com)# 47799046
[This message has been edited by Gimpster (edited 12-17-1999).]
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.