Private Const Form_ID = 1请问WebBrowser1.Document.Forms(Form_ID)(i).Name = "username" Then  这一句话中的Forms是什么属性?Forms(Form_ID)有代表什么意思呢?我看到有的程序上写的是WebBrowser1.Document.All(Form_ID)(i).Name也是这样的。

解决方案 »

  1.   

    document之后的属性完全是DHTML当中的对象,下面有详细例子http://www.lshdic.com/bbs/files.asp?dex=软件开发交流论坛&page=1&myclass=203
      

  2.   

    楼上的朋友,你的名字上也有星星啊!
    请问你为什么要谢谢lshdic(风云舞) ( ) 信誉:97 呢?
    人家是在回答我的问题呢!嘻嘻!
      

  3.   

    其中的WebBrowser1.Document.All的All也是集合吗?
      

  4.   

    我想问个问题谁能解答?       Dim Doc As IHTMLDocument2
           Set Doc = WebBrowser1.Document
           Dim Inputs As IHTMLElementCollection
           Set Inputs = doc.All.tags("INPUT")        Dim Element As IHTMLElement
            Set Element = Inputs.Item(1, 1)        Dim InputElement As IHTMLInputElement
            Set InputElement = Element
            InputElement.Value = Text1.Text
            
            '调用此页第一个窗体上的提交
            doc.Forms.Item(0, 0).submit
    那如果我在这页有两个表单.Inputs.Item(1, 1)该怎么写?
    doc.Forms.Item(0, 0).submit有该如何提交第二个表单?
     
    请指点.
      

  5.   

    必须参照具体的 HTML 源