Vb.net 导航URL但不加载图像?

Vb.net 导航URL但不加载图像?,vb.net,visual-studio-2010,visual-studio,Vb.net,Visual Studio 2010,Visual Studio,我想浏览url,但不在网页上加载任何图像。试过这个, Dim ie As New Object() ie = CreateObject("InternetExplorer.Application") ie.Document.body.innerHTML = Replace(ie.Document.body.innerHTML, "<img", "<div ") ie.Navigate2("http://www.example.org") 但当我运行程序时,应用程序停止了。正确的方法

我想浏览url,但不在网页上加载任何图像。试过这个,

Dim ie As New Object()
ie = CreateObject("InternetExplorer.Application")
ie.Document.body.innerHTML = Replace(ie.Document.body.innerHTML, "<img", "<div ")
ie.Navigate2("http://www.example.org")

但当我运行程序时,应用程序停止了。正确的方法是什么?

仅供参考,您不需要新的图片,否则会出现错误,请参阅>尝试Dim ie作为ObjectInterest。在VS2013中没有这样做。在代码的开头,我刚刚添加了Imports System.IO。您做了什么不同的事情吗?