Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GetObject
Message
Information générale
Forum:
Visual Basic
Catégorie:
Contrôles ActiveX
Titre:
Divers
Thread ID:
00397351
Message ID:
00397688
Vues:
8
>>Hi All!
>>How to receive the reference on started IE?
>
>I thought that it was an easy one but ... I don't know!
>
>It easy to start a new instance using this code (see Command1):
>
Private Sub Command1_Click()
>Dim x As SHDocVw.InternetExplorer
>    Set x = New SHDocVw.InternetExplorer
>    x.Visible = True
>End Sub
>
>Private Sub Command2_Click()
>Dim x As Object
>    Set x = GetObject(, "SHDocVw.InternetExplorer")
>    x.Visible = True
>End Sub
>
>Normally, you use the same class name but in this case I always receive a 429 error!
>
>If I think to something else, I'll get back to you.

If the Shell.Application COM object is available on the station (requires Shell v 4.71) then its Windows property is a collection of running instances of InternetExplorer.Application - one per IE instance active at the moment.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform