Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Embedding a Web page in a C# Window

I want to create a simple C# Window which displays the contents of a webpage. Is this possible ?

Eg. (what I am trying to do is)

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

like image 576
Prakash Raman Avatar asked Jan 20 '11 06:01

Prakash Raman


1 Answers

You can simply do this in a WebBrowser control. And use Navigate(string url) method to browse to a website. have a look Here for Details

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

and here is the details for the WebBrowser Class

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

like image 138
Shekhar_Pro Avatar answered Sep 22 '22 03:09

Shekhar_Pro