Web Browser Control Help

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);



}
 
M

meh

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);



}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top