Waiting for synchronous IWebBrowser2 Navigate



Hello, I have an IWebBrowser2 control which my application uses to
*synchronously* navigate to a web page. I am using a modal PeekMessage-
based message pump to make the navigation synchronous, and it works
fine. My problem is:

If the user quits my application while the browser is navigating, I
set a cancel flag inside my browsing code, but how do I then "wait"
for the browser control to finish without deadlocking my program? For
example, in the OnDestroy() method of my main window, I set the cancel
flag, and then I want to wait for the browser to finish.

Any ideas on how to achieve this?

Thanks!

.



Relevant Pages

  • Re: xmlhttp POST and navigate
    ... >to do a http POST and navigate my browser to the URL. ... So I can create an xmlhttp object inside my vbs file and from there ...
    (microsoft.public.scripting.vbscript)
  • Re: Posting Button_Click events to Web Page
    ... Same thing happens in the browser. ... I want the user's browser to automatically navigate to the ... > not get the browsers page to automatically navigate. ... > the download has completed. ...
    (microsoft.public.vb.6.webdevelopment)
  • Re: Browser Close Problem
    ... there is no browser event tied to actual browser ... > clicks different tab he can navigate between different forms.In my Main ... > and in the body tag of Main form I have written <body onbeforeunload ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How do I avoid a scroll when removing or creating DOM elements?
    ... remove DOM elements, and it's causing the browser to ... often felt that they should not be used for triggering scripts. ... As neither navigate side effects ...
    (comp.lang.javascript)
  • Re: Cost of Materials
    ... >> trying to navigate that site. ... >Try another browser. ... go to the Mozilla site and download ... (IE-only bank sites? ...
    (rec.crafts.metalworking)