PRB: WebBrowser Problems When Refreshing in TitleChange HandlerID: Q179229
|
When an application using the WebBrowser control makes a call to the
Refresh method of the WebBrowser control in an event handler for the
TitleChange event, various problems occur.
Internet Explorer 3.02 crashes with an access violation. In the other
versions of Internet Explorer mentioned at the beginning of this article,
an infinite loop occurs and the browser hangs.
In Internet Explorer 4.x this behavior is by design. Calling Refresh from within a TitleChange event handler causes the WebBrowser control to fire a TitleChange event. This infinite loop occurs if you call Refresh in handlers for many of the WebBrowser events.
Do not call Refresh within the TitleChange event handler for the WebBrowser.
This behavior is by design.
WebBrowser1.Navigate "http://www.microsoft.com"
Webbrowser1.Refresh
Additional query words:
Keywords : kbIE500
Version : WINDOWS:1.0,3.02,4.0,4.01
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: May 7, 1999