Microsoft Web Browser COM Component

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have added a Microsoft Web Browser control to my toolbox and placed it on
my form.

However, the LocationURL is readonly.

Is there any way to set the URL so that when the form loads, the page
appears straight away? I was thinking that the LocationURL property referred
to the URL of the form. Would that be correct?

Any advice on how to open the browser with a page loaded would be really
appreciated.
 
I just wanted to add that I found the Navigate2 property and set it to a page
on the web. It works fine.

However, I now want to add a page of my own to the project and show it in
the browser. I have tried simply adding the page as an existing item, but
cannot seem to get it to load.

Any suggestions?
 
cashdeskmac said:
I have added a Microsoft Web Browser control to my toolbox and placed it on
my form.

However, the LocationURL is readonly.

Is there any way to set the URL so that when the form loads, the page
appears straight away?

You can use the control's 'Navigate'/'Navigate2'/'Navigate3' methods to
display a certain page in the control.
 
Back
Top