M
Michael Maes
Hi,
I have a child-form in an MDI-Application which seems to loose the MouseUp-Event.
I grid (for navigation-purpose) appears on many of the child-forms and in (I think) only one this issue occurs.
What happens:
Private Sub grdNavigation_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles grdNavigation.MouseDown
Debug.WriteLine("Down: " & e.Button.ToString)
End Sub
Private Sub grdNavigation_MouseUp(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles grdNavigation.MouseUp
Debug.WriteLine("Up: " & e.Button.ToString)
End Sub
This simple (to clarify the issue) snippet should output:
Tab - Down: Left
Tab - Up: Left
Tab - Down: Right
Tab - Up: Right
It does so for the left button, but with the right button the event happens only every 2 to 5 times.
I've hooked-up Spy++ and I can see the WM_RBUTTONUP-Message every time I release the R-Button.
I've also tried to comment-out all the code in the child-form (exept the designer-code & the mouse-up/down of course) but that makes no difference.
Any-one any clue where to 'look'.
Thanks,
Michael
PS: Just a note: the form contains a TabControl (Maybe 'another' bug?)
I'm using:
a.. vb.Net 2003 Enterprise Architect Edition
b.. Windows XP SP1a
I have a child-form in an MDI-Application which seems to loose the MouseUp-Event.
I grid (for navigation-purpose) appears on many of the child-forms and in (I think) only one this issue occurs.
What happens:
Private Sub grdNavigation_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles grdNavigation.MouseDown
Debug.WriteLine("Down: " & e.Button.ToString)
End Sub
Private Sub grdNavigation_MouseUp(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles grdNavigation.MouseUp
Debug.WriteLine("Up: " & e.Button.ToString)
End Sub
This simple (to clarify the issue) snippet should output:
Tab - Down: Left
Tab - Up: Left
Tab - Down: Right
Tab - Up: Right
It does so for the left button, but with the right button the event happens only every 2 to 5 times.
I've hooked-up Spy++ and I can see the WM_RBUTTONUP-Message every time I release the R-Button.
I've also tried to comment-out all the code in the child-form (exept the designer-code & the mouse-up/down of course) but that makes no difference.
Any-one any clue where to 'look'.
Thanks,
Michael
PS: Just a note: the form contains a TabControl (Maybe 'another' bug?)
I'm using:
a.. vb.Net 2003 Enterprise Architect Edition
b.. Windows XP SP1a