Question Cancelling MouseHover

solfinker

Well-known member
Joined
Aug 6, 2013
Messages
71
Programming Experience
Beginner
Hello!
What should I do for cancelling the mousehover effect?

Private Sub pbox1_Mousehover(sender As Object, e As EventArgs) Handles pbox1.MouseHover
pboxCallout1.Visible = True
End Sub

And now, for making pboxCallout1.Visible = False without "hovering" anything else??

Thanks a lot!
 
Last edited:
There is no "mousehover effect" to cancel. Are you actually just asking how to hide the (I assume) PictureBox that you just showed? If so then you could use a Timer that you Start on MouseHover and then Hide the PictureBox in the Tick event handler.

That said, does it even make sense to be showing a PictureBox there? I believe that someone else directed you to the ToolTip component in another thread, which will automatically display on mouse hover and automatically hide again. That is more likely what you should be doing.
 
Back
Top