C# 为什么即使IE没有';你不辞职吗?
有以下代码:C# 为什么即使IE没有';你不辞职吗?,c#,internet-explorer,events,browser,automation,C#,Internet Explorer,Events,Browser,Automation,有以下代码: Dim InternetExplorer As New SHDocVw.InternetExplorer InternetExplorer.Visible = True InternetExplorer. Navigate("http://stackoverflow.com/") AddHandler InternetExplorer.OnQuit, Sub() Console.WriteLine("InternetExplorer.OnQuit
Dim InternetExplorer As New SHDocVw.InternetExplorer
InternetExplorer.Visible = True
InternetExplorer.
Navigate("http://stackoverflow.com/")
AddHandler InternetExplorer.OnQuit,
Sub()
Console.WriteLine("InternetExplorer.OnQuit")
End Sub
当我在InternetExplorer11下运行代码时
http://stackoverflow.com/
第页问题
按钮
OnQuit
事件激发和控制台写入InternetExplorer.OnQuit
http://stackoverflow.com/questions
成功加载Questions
按钮OnQuit
事件不会触发,但Internet Explorer会丢失所有事件订阅
OnQuit
事件你有没有想过?我也看到了同样的问题。我们的解决方法是大量的黑客尝试跟踪哪些InternetExplorer实例对应于活动标签,哪些不对应。