Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create a browser control on the form
Message
De
23/08/2000 05:50:14
 
 
À
23/08/2000 05:36:10
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00408145
Message ID:
00408146
Vues:
19
>Dear all,
>
>I would like to add a Active X control (Web Browser) on my form. When I add the control, error message come out and how can I assign the URL address to the control? Thanks a lot
>

I just drag a copy of it from the Component Gallery (in the default Gallery, it's in Visual FoxPro/Foundation Classes/Internet - just drag the ActiveX control from Component Gallery to the form and it's on the form.)

To go to a URL, simply invoke the Navigate method; the first parameter is the URL you want to go to, so if my Web Browser control is named WebBrowser, to point it to UT:

thisform.WebBrowser.Navigate("http://www.levelextreme.com")

The documentation on the Web Browser control is in the MSDN Library; there's an entire section of the MSDN devoted to leveraging the IE Browser through various mechanisms, including the Web Browser control.
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