I have what would seem to be a simple problem, but I can't get it. To save screen space, I'm trying to create a simple autohide window using a panel control, which will slide open and closed on the MouseEnter and MouseLeave events. For example, here's what I have on MouseEnter. With the opposite on MouseLeave.
If NavPnl1.Height = 500 Then
Else
NavPnl1.BorderStyle = BorderStyle.Fixed3D
For i As Integer = 1 To 500
NavPnl1.Height = i
Next
End If
This works fine, but the only problem is that the MouseLeave is fired when I cross another control on the same panel...closing the panel down (and making it worthless). Does anyone have a quick solution to keep the MouseLeave event on the panel from firing when another control is crossed? Or another way to accomplish the same?
Thanks in advance!