C# shdocvw.InternetExplorer新窗口3/2。无法使用我自己的Internet Explorer
我在VisualStudio2010 WPF程序中有以下代码。我正在自动化Internet Explorer,而不是表单上的Web浏览器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
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,则无需取消。您提供的窗口是唯一制作的窗口