Home > Net >  Ask why can't I use webview2
Ask why can't I use webview2

Time:11-04

Microsoft's new released the embedded browser component webview2 winform end, and that is different, this is a new core call ms edge

https://docs.microsoft.com/en-us/microsoft-edge/webview2/gettingstarted/winforms

I installed the webview2 according to the specification, but the toolbox control did not appear, nor new DLL, in reference manual reference failure, could you tell me how to use this should be?







CodePudding user response:

Hook on the release preview, select the latest version to start again can
in the toolkitI am using version is 0.9.515 - prerelease
0.9.488 can't see the inside of the toolbox control code hinting

CodePudding user response:

Win10 vs2019 Nuget to download the latest version, and also can't quote

CodePudding user response:

MSDN write very clear, a prerequisite for
1. The need to install the latest Microsoft edge browser (notice is the latest)
2. Need to install a preview

CodePudding user response:

Webview2 adopted, for example, installed the Edge of the latest version of the pre - release version,
You can add controls, but still in the process of initialization errors,

 this. Controls. The Add (enclosing webView21); 

System. NullReferenceException
HResult=0 x80004003
Message=the object reference not set to an instance of an object,
Source=Microsoft. Web. WebView2. WinForms
StackTrace:
In Microsoft. Web. WebView2. WinForms. WebView2. OnVisibleChanged (EventArgs e)
In the System. Windows. Forms. Control. AssignParent (Control value)
In the System. Windows. Forms. Control. ControlCollection. Add (Control value)
In the System. Windows. Forms. The Form. ControlCollection. Add (Control value)

CodePudding user response:

Install the see
https://www.microsoftedgeinsider.com/zh-cn/download

CodePudding user response:

reference 1st floor dmankill response:
hook issue preview, select the latest version to start again can
in the toolkitI am using version is 0.9.515 - prerelease
0.9.488 can't see the inside of the toolkit controls no code hinting


Hello, where is the "hook preview edition"?

CodePudding user response:

A: hi! Now there are a large number of system is to use than win10 low versions of Microsoft, Microsoft webbrowser until now does not support more than IE8, IE is stupid, now many large enterprise users only use Windows are required to build/11, rather than the Egde,

From a practical point of view, this stuff is pit, clearly is to make the enterprise users (especially large enterprise users) scold you, don't follow the user account, so this kind of thing at least for now, just as a joke, such as the future Windows 10 by the Chinese government declared a "browser" popular products, or Microsoft's browser is completely kicked out of China!

CodePudding user response:

Edge, such as the future by the Chinese government declared a "browser" popular products, this is impossible, for the enterprise users, will know that a little experience, there is no way to force users to install what Edge, if you can't run on Windows 7, completely give up!

CodePudding user response:

I also encountered such a problem, I in this machine running is normal (win10 + vs2017), but not in other machines,

CodePudding user response:

Use Cefsharp, cool, dropping,

CodePudding user response:

To use edge beta, dev version can't send it before the official version

CodePudding user response:

You again to play this, no good, also is not stable, I tested yesterday, pay attention to the version, be sure to RELASE, or not, has also not necessarily can run, only can be dragged

CodePudding user response:

There are a few things to pay special attention to:
1, you must install the Edge Bate
2 in NuGet package management, there must be checked contain pre-release version, then you must choose to download the latest version - pre bag, don't download the official version of the package, by the side of the package description: formal version only to use win32 c + +, - pre preview is for all supported languages use,
  •  Tags:  
  • C#
  • Related