Change URL of WebBrowser in C#

Posted by Sean on Stack Overflow See other posts from Stack Overflow or by Sean
Published on 2011-01-01T06:51:11Z Indexed on 2011/01/01 6:53 UTC
Read the original article Hit count: 515

Filed under:
|
|
|

I am designing a simple application using c# and it has a web browser in it. I need to either (preferably) refresh the page that is currently inside the broswer, or navigate to a "new" url. I tried Browser.Url = new Uri("http://www.pandora.com/"); but I get an error when I try to compile it.

Error 1 Cannot implicitly convert type 'string' to 'System.Uri' c:\users\sean\documents\visual studio 2010\Projects\Pandora\Pandora\Form1.cs 51 27 Pandora

What am I doing wrong?

© Stack Overflow or respective owner

Related posts about c#

Related posts about browser