简体   繁体   中英

No WebBrowser Control in Toolbox Winforms .NET 6

Is there a recommended Workarround for that missing Webbrowser element? In the old WinForms (until .NET FW 4.8), it was found in the toolbox.

I don't have a reference from Microsoft for you, but I believe webbrowser is not available in .NET 5+. You'd need to switch to webview2, which uses chromium Edge.

As Poul Bak said. The solution is to search for webview2 in nuget, and then install it. The webview2 control will appear in the toolbox, and then drag and drop.Microsoft's official documentation link .Hope it helps you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM