Microsoft Communities

Welcome to WindowsClient.net | Sign in | Join

Here are some frequently asked questions about Windows Forms and their answers.

Windows Forms FAQs

How do I set the WebBrowser.Url?

The webBrowser.Url is not a string, but rather is a Uri object. If you still want to use a string to set the WebBrowser.Url you can do so in one of following ways:

  1. webBrowser.Url = new Uri("path string");
  2. webBrowser.Navigate("path string");
  3. webBrowser.Navigate(new Uri("path string"));


Page view counter