I want to show (display) a form or even maybe a panel while the user is hovering over a PictureBox.
How would these events work?
Printable View
I want to show (display) a form or even maybe a panel while the user is hovering over a PictureBox.
How would these events work?
You would handle the MouseHover event of the PictureBox and then do whatever is appropriate in that event handler. What else you do depends on the EXCACT behaviour you want, which you haven't described.
I would like to display a graph in the Form . The form would contain a button , to enable printing the form
Ok, i figured it out.
for Form1 the code is
For Form2 the code is.Code:Private Sub Button1_MouseEnter(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.MouseEnter
Form2.Show()
End Sub
Private Sub Form2_MouseLeave(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.MouseLeave
Me.Close()
End Sub