RedTreachery
03-07-2004, 12:49 PM
I have an image on my form and I want to make it so when I put the cursor of the image, it will change to a different image.
(IE: Move your cursor over the "Home" button on top and see how it changes orange.)
shapeshifter
03-07-2004, 12:52 PM
use the pictureboxes mose move event
Private Sub Picture1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Picture1.Picture = LoadPicture("c:\mypic.jpg")
End Sub
RedTreachery
03-07-2004, 01:01 PM
What do i do once I take cursor off of it ?
shapeshifter
03-07-2004, 01:05 PM
well you could use the forms mouse move to set the picture back
rpgnewbie
03-07-2004, 06:52 PM
I have an image on my form and I want to make it so when I put the cursor of the image, it will change to a different image.
For archival purposes, this effect is called a "rollover".
If you want to see a working demo, please check out my "Rollover_sample.zip" is attached to post #2 of this thread:
http://www.xtremevbtalk.com/t106989.html