fire mouse_enter event with mouse already down
hey all...
I need to fire an event when the mouse enters a panel with the mouse button already down. It seems the standard mouse enter, mouse move, etc events don't fire when the mouse is already down. With test code i'm using, all of the events fire when the mouse button is up, none fire when the mouse button is down.
any ideas?
edit...
here is my test code..
vb Code:
Public Class Form1
Private Sub Panel1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Panel1.MouseDown
Debug.Print("MouseDown")
End Sub
Private Sub Panel1_MouseEnter(ByVal sender As Object, ByVal e As System.EventArgs) Handles Panel1.MouseEnter
Debug.Print("MouseEnter")
End Sub
Private Sub Panel1_MouseHover(ByVal sender As Object, ByVal e As System.EventArgs) Handles Panel1.MouseHover
Debug.Print("MouseHover")
End Sub
Private Sub Panel1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Panel1.MouseMove
Debug.Print("MouseMove")
End Sub
End Class
thanks
kevin
Re: fire mouse_enter event with mouse already down
Hmm... I don't know if it will fire. I tested with a panel and catching the WndProc event, and no messages were sent when the mouse entered and the button was down.
Re: fire mouse_enter event with mouse already down
hmmmm.. well that sucks....thanks for looking into it Negative0
Re: fire mouse_enter event with mouse already down
you can use the dragdrop events
Re: fire mouse_enter event with mouse already down
Quote:
Originally Posted by
.paul.
you can use the dragdrop events
with out the cursor changing?
Re: fire mouse_enter event with mouse already down
you can use any cursor you choose during dragdrop operations.
just set the cursor in the appropriate _giveFeedback event