|
こんなんでどう?PictureBox1.MouseEnterは多分いらないと思う。
Private Sub Panel1_MouseEnter(sender As Object, e As System.EventArgs) Handles Panel1.MouseEnter ', PictureBox1.MouseEnter
PictureBox1.Visible = True
End Sub
Private Sub Panel1_MouseLeave(sender As Object, e As System.EventArgs) Handles Panel1.MouseLeave
Dim pos = Panel1.PointToClient(Control.MousePosition)
If Not PictureBox1.Bounds.Contains(pos) Then
PictureBox1.Visible = False
End If
End Sub
|