Web Browser Control Help

  • Thread starter Thread starter Dougie
  • Start date Start date
D

Dougie

I am wanting to include a web browser in my application. I have used the COM Microsoft Web Browser control but when I run the applicaiton I get a waiting icon and the page never displays. It's not my firewall denying the application and I am unsure as to what is going wrong. Can anyone help??

Thanks .

private AxSHDocVw.AxWebBrowser axWebBrowser1;

............................

private void OnlineViewer_Load(object sender, System.EventArgs e)

{

object nullObject = null;

object uri = "http://www.microsoft.com";

axWebBrowser1.Navigate2(ref uri, ref nullObject, ref nullObject, ref nullObject, ref nullObject);



}
 
Greetings;
Try the same code in the form activate event......If that does not work try the navigate instead of navigate2 event.

meh
I am wanting to include a web browser in my application. I have used the COM Microsoft Web Browser control but when I run the applicaiton I get a waiting icon and the page never displays. It's not my firewall denying the application and I am unsure as to what is going wrong. Can anyone help??

Thanks .

private AxSHDocVw.AxWebBrowser axWebBrowser1;

...........................

private void OnlineViewer_Load(object sender, System.EventArgs e)

{

object nullObject = null;

object uri = "http://www.microsoft.com";

axWebBrowser1.Navigate2(ref uri, ref nullObject, ref nullObject, ref nullObject, ref nullObject);



}
 
Back
Top