Jump to content

WebBrowser.Navigate (method) - C#

0
  Ángel Manuel García Carmona's Photo
Posted Nov 23 2010 01:08 PM

Posted Image

WebBrowser.Navigate is a method which the WebBrowser can access to a website. For example, if we want that when click a button, the webbrowser navigates to an address, we use this function.

If we are programming in Silverlight or WPF -also for Windows Phone 7-, the code line must be in this format -for example-:

WebBrowser1.Navigate(new Uri("http://localhost/default.htm"))


If we are programming in Windows Forms, the code line must be in this format -for example-:

WebBrowser1.Navigate("http://localhost/default.htm")

Ángel Manuel

Tags:
0 Subscribe


1 Reply

0
  vomers's Photo
Posted Aug 27 2011 08:38 AM

Is it too hard to ask that when you discuss anything in C# to include the namespace(s) required. The hardest thing is finding which ____ namespace is needed to be able to use the functionality!!!