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

Web browser

Status
Not open for further replies.

Bersani

Programmer
Nov 10, 2011
48
US
I am looking for a control for the web browser to insert the URL. Where are you supposed to insert the URL?
Like many, I am extremely sorry that Microsoft is not making new versions of VFP. VFP has been wonderful and there is nothing to replace it!!
 
Are you referring to the Microft Web Browser ActiveX control?

If so, are you asking how to navigate to a particular URL?

If so, you need to call the Navigate2 method, passing the URL as a parameter.

Does that answer your question? If it doesn't, perhaps you could clarify what you need to know.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips, training, consultancy
 
The Web Browser Control is not a broweser. It's just the main canvas of an IE. You can use it to display a site and add your own UI around it. It has a method navigate2() and there you can pass in a URL. Use a simple Textbox for user entry of a URL, for example, whatever you like.

If you wnt a broswer, just start it by either
oIE = CreateObject("InternetExplorer.Application")
oIE.visible = .T.

or by ShellExecute(" parameters here) to start the standard browser of a user.

I don't know what you expect or want, so tell us.

Bye, Olaf.
 
I am looking for a control for the web browser to insert the URL. Where are you supposed to insert the URL?

Assuming you are using the web browser control, use a textbox for input just as you would anywhere else in VFP.

Once the user has typed the URL, you can use the textbox's Valid() method to call the webrowser's navigate2 method.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top