Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create a browser control on the form
Message
From
23/08/2000 05:50:14
 
 
To
23/08/2000 05:36:10
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00408145
Message ID:
00408146
Views:
17
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform