X
xela
I'm developing a UserControl that essentially a wrapper for Webbrowser.
The caller module will call the Navigate() method for document download.
It then call WaitOne() on a ManualResetEvent object. The ManualResetEvent
object is supposed
to be Set() from WebBrowser's DocumentComplete event handler when download
completed.
However, when Navigate() is called, it simply stops at the WaitOne() call
and never get the Set() from DocumentCompleted event.
Can anyone give a hint ?
The reason why I try to use WaitOne() is that the Application.Doevents is
consuming a lot of CPU resource unnecessarily.
Thanks
The caller module will call the Navigate() method for document download.
It then call WaitOne() on a ManualResetEvent object. The ManualResetEvent
object is supposed
to be Set() from WebBrowser's DocumentComplete event handler when download
completed.
However, when Navigate() is called, it simply stops at the WaitOne() call
and never get the Set() from DocumentCompleted event.
Can anyone give a hint ?
The reason why I try to use WaitOne() is that the Application.Doevents is
consuming a lot of CPU resource unnecessarily.
Thanks