In my code I have the following scenario:
Private Sub f1(ByVal sender As Object, _
ByVal e As System.Windows.Forms.MouseEventArgs) _
Handles myListView.MouseUp ' declared in obj1
...
RaiseEvent mcEvClick(anItem)
...
End Sub
...
Private Sub f2(ByVal aDataItem As classItem) Handles myObj1.mcEvClick
' declared in obj2
...
obj3.f3()
...
End Sub
...
Private Sub f3() ' declared in obj3
...
While (Me.ReadyState <> "complete")
Application.DoEvents()
End While
End Sub
When I click the mouse on obj1.myListView I get obj1_f1() called
sequentially.
This sequence ends only when I move the mouse out of obj1.myListView.
I guess this happen because in obj3_f3 I call
Application.DoEvents()
which reHandle the first MouseUp event that started the whole
scenario.
and when I move the mouse, the events message queue is changed.
1. Is it true that Application.DoEvents() reHandle the last event
if I didnot leave the handler obj1_f1() ?
2. If so, how can I mark this event as handled, so I will not reHandle
it ?
Thanks
Atara.
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!