You need to install the WebView2 NuGet Package to create the control, which contains DLLs like Microsoft.Web.WebView2.WinForms.dll
and the Runtime to make it work (for example, I installed MicrosoftEdgeWebView2RuntimeInstallerX64.exe on my Windows 10 64-bit OS)
Alternative for webBrowser control in WebView2
We have a VSTO addin for MS Project 2010/2013/2016/2019, where it imports/exports data from an external application and these pages are rendered in embedded Internet Explorer browser from MS Project.
Since IE support will be ending in few years, we are moving to new embedded browser control known as the Microsoft Edge WebView2 control.
As of now, to display pages using embedded IE, MS.NET includes a "WebBrowser" control that allows .NET applications to provide an embedded web browser.
Now as we want to switch to WebView2 control, is there any control similar to "WebBrowser" control that would work with WebView2 to get handle of the browser?
Any help would be appreciated.
Thanks,
Priyanka
Windows for business | Windows for IoT
Developer technologies | VB
An object-oriented programming language developed by Microsoft that can be used in .NET.
Locked Question. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
2 answers
Sort by: Most helpful
-
Castorix31 91,966 Reputation points2022-03-06T19:33:23.023+00:00 -
Deleted
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more