When I do something like this
webBrowser1 = new WebBrowser();
webBrowser1.Url = new Uri("http://google.com");
webBrowser1.Navigate("http://google.com");
all I get is a blank window.
when I step through this webBrowser1.Url stays = null after the second statement has executed. Why is that?
if I set the url property before I compile the web site loads correctly when I open the form.
So why can’t I load a site dynamically?
I had it in the constructor and it worked when I moved it out. I now call a function after the form loads to set the control