WebBrowser1.Navigate ("http://www.baidu.com/a.txt")    If IsNull(WebBrowser1.LocationURL) = True Or WebBrowser1.LocationURL = "$False$" Then
        Exit Sub
    End If
这样写对么?用来判断WebBrowser是否成功打开网络文档的

解决方案 »

  1.   

    IsNull(WebBrowser1.LocationURL)永远也不会等于True,因为WebBrowser1.LocationURL永远也不会是NULLWebBrowser1.LocationURL = "$False$"'啥意思,没看懂.
      

  2.   

    那如何才能判断WebBrowser是否成功打开网络文档的
      

  3.   

    WebBrowser1.Navigate ("http://www.baidu.com/a.txt")
    While WebBrowser1.Busy
    DoEvents
    Wend
    msgbox "打开完毕"