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

Windows application that has a built in Internet browser

Status
Not open for further replies.

Govnor

Technical User
Sep 3, 2002
55
GB
Does anyone know how to make a windows application form with an Internet Browser built inside it?

So I have a Windows.NET form with another window (the internet browsers window) that has an address bar that I can surf the web on.

Hope that makes sense


Thanks
Manraj
 
Do you have the web browser control already on your form? If not, you will need to add it into your control toolbox.

You can use the COM Component - Microsoft Web Browser.

Let me know how you get on.
 
Hi,

Thanks for the reply.

Done that, I got a white box. How do I navigate? Can I make an address bar? So I can type in an http address.


Thanks
Manraj
 
The web browser control is ONLY for displaying pages. If you want other stuff (like an address bar), you'll have to program it yourself. Same for navigation buttons, favorites, the works.

To start learning about it, I've found the easiest thing to do is add a button to the form, open its click event, and type something like

webBrowser1.

and read through all the different properties/methods available. 90% of the time, you'll be able to locate what you're looking for.

Ben

There's no place like 127.0.0.1.
 
Hi,

I have been reading through the properties/methods.
But I have a question on the LocationURL Property, I am trying to set the value but it will not let me (property is greyed out).

I want to set the LocationURL Property to i.e. " is this possible? Or I am using the wrong property (or doing it all wrong), basically I am trying to run my form with i.e. hotmail as the homepage when it starts up.

Manraj.
p.s. Thanxs for all the help.
 
Cool, thanks for that.

Those links were very helpful.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top