Hi group,
I'm having a strange problem with event handling. My project has a form with
a textbox that creates 25 instances of class A when a button is clicked.
Class A raises the event without error, I have proved this by having it use
a streamwriter to create and write to a simple text file after raising the
event. Twenty-five files are created each time the button is pressed.
The form is wired up to the event (rr.OnComplete += new
ReqResp.ReqRespEventHandler(TestHandler); ...), grabs the EventArgs and
updates the textbox. I've put MessageBoxes in TestHandler, and it displays
25 boxes each time. The problem is that the textbox itself rarely displays
all 25 event messages (as few as 16, up to all 25). Are things happening too
fast here? I've tried Suspending the Layout, to no avail.
Any ideas here?
--
Tim Gallivan
I know I'm a great teacher because when I give a lesson, the person never
comes back.