I have an image that says exit, what I want is the image to change to a different image when the mouse is over it and again when it is pressed. Is there anyway to do this.
Printable View
I have an image that says exit, what I want is the image to change to a different image when the mouse is over it and again when it is pressed. Is there anyway to do this.
Something to do with mouse over, roll over or something like that.
It must be in VB help or something, like
Image1_mouseover
'change image here
end sub
image1_mouseoff
'go back to the other image
End sub
Code:'when it is clicked
Private Sub Image1_Click()
image1.picture = loadpicture(path)
End Sub
'when the mouse moves over the image
Private Sub Image1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
image1.picture = loadpicture(path)
End Sub