Microsoft KB Archive/168215

{|
 * width="100%"|

FIX: WebBrowser.Navigate Crashes with navNoHistory

 * }

Q168215

-

The information in this article applies to:


 * Microsoft Internet Explorer (Programming) versions 3.0, 3.01, 3.02

-

SYMPTOMS
When the Navigate method of the WebBrowser control is called with the navNoHistory flag, the container crashes.

RESOLUTION
To avoid the crash call one of the other navigate methods prior to calling Navigate with the navNoHistory flag. For example, the following code could be added to the OnLoad event of the form in which the WebBrowser control is embedded:

  WebBrowser1.GoHome While this does put an element on the WebBrowser's internal navigation stack, the crash is avoided.

STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem has been fixed in Internet Explorer 4.0.

Steps to Reproduce Behavior
 Launch Visual Basic 4 or Visual Basic 5. Add the WebBrowser control as a component. Draw the WebBrowser control onto the form. Add a button to the form.  To the Button's click event handler add the following code:      WebBrowser1.Navigate "http://example.microsoft.com", navNoHistory  Run the form. Click the button.</li></ol>

Additional query words:

Keywords :

Issue type : kbbug

Technology : kbIEsearch kbAudDeveloper kbSDKIESearch kbSDKIE300 kbSDKIE301 kbSDKIE302