Embed a web page in a C # window

I want to create a simple C # window that displays the contents of a web page. Is it possible?

Eg. (what am I trying to do)

csharp.window.loadUrl ("http://www.google.com")

+6
c # visual-studio embedding
source share
4 answers

You can simply do this in a WebBrowser control. And use the Navigate (string url) method to go to the site. look here Read more

http://msdn.microsoft.com/en-us/library/3s8ys666.aspx

and here are the details for the WebBrowser class

http://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser.aspx

+5
source share

I think you want to take a look at the WebBrowser control or the WPF equivalent

+3
source share

Just for completeness, there is also a completely controllable control to embed firefox instead of MS Explorer:

Geckofx

+3
source share

Create a form using WebBrowser . You can use its methods to go to the page or manipulate the document as you wish.

+2
source share

All Articles