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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WebBrowser Control shdocvw.dll

Status
Not open for further replies.

s8dsw

IS-IT--Management
Apr 28, 2002
7
GB
Can I add the webbrowser control at runtime.

I'm using V6 sp3
 
If you have 1 on your form at runtime you can add more browsers by setting the index property of the browser on your form to 0 (n), to add others simply load webbrowser(n+1). I think you do need that initial browser on your form at runtime though
 
Or if you have a reference to Microsoft Internet Controls:


Dim objIE1 As SHDocVw.InternetExplorer
Dim objIE2 As SHDocVw.InternetExplorer

Set objIE1 = New SHDocVw.InternetExplorer
Set objIE2 = New SHDocVw.InternetExplorer

objIE1.Visible = True
objIE1.Navigate2 "
objIE2.Visible = True
objIE2.Navigate2 "
Set objIE1 = Nothing
Set objIE2 = Nothing


Troy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top