Home > other >  Display Html page via url in Winforms in .Net6
Display Html page via url in Winforms in .Net6

Time:09-27

I am trying to to display an HTML page in Winforms by using a url of the said page.

I have tried it in .Net Framework, it works using WebBrowser tool and gives the exact result needed but this tool is not available in .Net 6 and I have to make it in .Net 6.

I even tried to implement WPF control but even the ElementHost tool is not available in .Net 6.

Is there an alternative method way to display Html or use .Net Framework tools in .Net 6?

Sorry for the lack of code since Winforms is mostly drag and drop, I will add any required code if needed.

CodePudding user response:

The newest (at time of writing) in-app browser control by Microsoft is WebView2. It's based on the latest Edge browser.

Here is a link to the Microsoft documentation on how to set it up for WinForms

  • Related