Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Web Browser control - prevent navigation until complete

Posted on 2006-11-12
1
Medium Priority
?
187 Views
Last Modified: 2012-08-13
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).

0
Comment
Question by:lee88
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 10

Accepted Solution

by:
Kinger247 earned 2000 total points
ID: 17925169
Yes, put the webBrowser control on a picturebox, then whilst your waiting for your page to load, disable the picturebox.
When its loaded ok, re-enable it !
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question