Question

I am trying to create an image on which if a specific part is hovered over, the image hides and another becomes visible. I have done this by placing an image block over the first image and used the following code:

Private Sub Image1_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal y As Single)
Me.Image2.Visible = False
Me.Image3.Visible = True
End Sub

This works fine however, I dont want Image1 (the one that is hovered over) to be visible and just want the user to be able to see Image2 initially and just Image3 after the event occurs. To do this, I set Image1 visibility to false but now when I hover over its location nothing happens. For some reason this only works when the image is visible. Is there a way around this?

Was it helpful?

Solution

You could make image 1 transparent. This way the image could be 'visible' but you wouldn't be able to see it. I would have all the functionality you would need it to as well.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top