Link to home
Start Free TrialLog in
Avatar of lee88
lee88Flag for United States of America

asked on

Web Browser control - prevent navigation until complete

I have a VB6 app that contains an instance of the Web Browser Control which works fine. However, when a user navigates to some URLs, it takes a few seconds for the target web page to be displayed. During that time, the WBC still shows the current web page, and, if the user clicks on a second link on the current webpage, the WBC (apparently) quits trying to navigate to the first-clicked-link's web page, and, instead, navigates to the second-clicked-link's web page.

I am using WBC's Document_Complete() event to trigger business logic in my VB6 application, and when this "quit navigating to the first-clicked-link, and navigate to the second-clicked-link" happens, it causes undesirable results.

Is there a way to do this:
Immediately after the user clicks on a link on the current webpage, disable the ability for the user to click on another link on the current webpage until the browser has completely processed that click (ie, the target web page is completely displayed).

ASKER CERTIFIED SOLUTION
Avatar of Kinger247
Kinger247

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial