110,571
社区成员
发帖
与我相关
我的任务
分享
this.Controls.Add(this.webView21);
System.NullReferenceException
HResult=0x80004003
Message=未将对象引用设置到对象的实例。
Source=Microsoft.Web.WebView2.WinForms
StackTrace:
在 Microsoft.Web.WebView2.WinForms.WebView2.OnVisibleChanged(EventArgs e)
在 System.Windows.Forms.Control.AssignParent(Control value)
在 System.Windows.Forms.Control.ControlCollection.Add(Control value)
在 System.Windows.Forms.Form.ControlCollection.Add(Control value)