>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.