C # can I show a live webpage in a windows form application?

I was wondering if it is possible to display a webpage inside a windows form application. I am trying to create a livechat client, but for a beginner, C # seems to be difficult, since I also have to code the server side. So I was wondering if it is possible to show the php page containing the chat client in my application window?

Thanks in advance for any replay!

+6
source share
3 answers

Yes, you can do it with WebBrowser . Put it on the form and call the Navigate method:

 browser.Navigate("http://www.google.com"); 
+11
source

Yes, use the WebBrowser control. It does exactly what you describe: show the web page from the winforms application. This is essentially Internet Explorer from inside the control.

+3
source

Yes, Windows forms have a WebBrowser control. You can navigate this page to any web page that you would like.

+3
source

Source: https://habr.com/ru/post/921147/


All Articles