axWebBrowser control

G

Guest

Hi,

My question is very simple I am sure but I cant seem to find a solution
anywhere....

I have a windows form in C# and I have added an axWebBrowser control. When
the form loads I am trying to display a web page in the control.... but I
have tried Navigate and Navigate2 methods and whatever I try nothing is
displayed... The code that I am using in the forms load event is

object oURL = "http://www.microsoft.com";
object oEmpty = "";
axWebBrowser1.Navigate2(ref oURL, ref oEmpty, ref oEmpty, ref oEmpty, ref
oEmpty);

which I got from Microsoft web site

Can anyone explain what I need to do to have the web page display?
 
G

Guest

Additional Info:

The form I am using is an MdiChild form.... when I run the code on a
standard form it displays the web page correctly.... how do I get the
axWebBrowser control to work on an MDIchild form?

Many thanks in advance
 
S

Sharon

Hi,
You are using the activex control.
You should use System.Windows.Forms.WebBroser,
which is probably a wrapper to the com obj.
Anyway, as far as i remember, you only have to set the url
property on WebBrowser and the web page loads automatically.
Hope this helps.
Sharon.
 

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