Link to home
Start Free TrialLog in
Avatar of cliff_martin
cliff_martin

asked on

VB Interacting with Internet Explorer

I am hoping someone can help me with three questions that I have about interaction with Internet explorer.

The first is: How do you clear the cache (the equivalent of right clicking on the explorer icon and selecting properties and then selecting the delete button under Temporary Internet Files)?

The second is: How do I submit a URL to a the browser and then after a specified time send another URL to the same browser (not opening another browser)?

The last Question is: How can you tell when Internet explorer is done loading a page from a VB application? I would like to submit a URL and check if the it has finished loading and then submit another.
Avatar of Languard
Languard

Answer to the second question

Refrence the Microsoft Internet Controls
Add the following code:
Dim Browser As InternetExplorer
'Create the object
Set Browser = CreateObject("InterNetExplorer.Application")
Browser.Visible = True
'Open the web page
Browser.Navigate ("http://URL")
'Wait until the page is done loading
Do While Browser.Busy
    DoEvents
Loop

Browser.Navigate ("ftp://URL")
Avatar of cliff_martin

ASKER

I would like to give the points to languard, however he only answered one of the questions. The Question that I am having the most difficulty with is the cache question.
ASKER CERTIFIED SOLUTION
Avatar of Mirkwood
Mirkwood

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