Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using web browser control

Status
Not open for further replies.

wvufreelancer

Programmer
Jun 8, 2004
11
US
Hello I am using VB6 with the web browser control and a listbox. What I am doing is loading a listing of HTML files into the listbox. The next thing is I want the control (all this is on an activex control) to go through the list box and load each page. But when it loads each page it needs to wait for the page to completly load. Each one has an active x control on it that needs to download. Once it is downloaded and the page displays, it should go on to the next one.
thanks for any help
 
Use .navigate method to trigger move to the appropriate page then use the DocumentComplete event to detect when the url has been successfully loaded.


MyBrowser.Navigate ListBox.List(0)



MyBrowser_DocumentComplete(ByVal pDisp As Object, Url As Variant)
if url=ListBox.List(0) then msgbox "Load of " & url & " complete"



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top