Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/336.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# shdocvw.InternetExplorer新窗口3/2。无法使用我自己的Internet Explorer_C#_.net_Vb.net_Internet Explorer 8 - Fatal编程技术网

C# shdocvw.InternetExplorer新窗口3/2。无法使用我自己的Internet Explorer

C# shdocvw.InternetExplorer新窗口3/2。无法使用我自己的Internet Explorer,c#,.net,vb.net,internet-explorer-8,C#,.net,Vb.net,Internet Explorer 8,我在VisualStudio2010 WPF程序中有以下代码。我正在自动化Internet Explorer,而不是表单上的Web浏览器 Private Sub ie_NewWindow3(ByRef ppDisp As Object, ByRef Cancel As Boolean, ByVal dwFlags As UInteger, ByVal bstrUrlContext As String, ByVal bstrUrl As String) Handles ie.NewWindow3

我在VisualStudio2010 WPF程序中有以下代码。我正在自动化Internet Explorer,而不是表单上的Web浏览器

Private Sub ie_NewWindow3(ByRef ppDisp As Object, ByRef Cancel As Boolean, ByVal dwFlags As UInteger, ByVal bstrUrlContext As String, ByVal bstrUrl As String) Handles ie.NewWindow3
    Dim ie As New SHDocVw.InternetExplorer
    ie.RegisterAsBrowser = True
    ppDisp = ie.Application
    ie.Visible = True
    Cancel = True
End Sub
当事件发生时,我得到了我的新Internet Explorer,但它处于未初始化的就绪状态,只是坐在那里无所事事,似乎没有任何事件发生。有人能帮忙吗


例如,我在这个简单的网站上试用过它

啊,它很简单。如果是internet explorer,则无需取消。您提供的窗口是唯一制作的窗口