本帖最后由 wwwyi13cn 于 2009-08-11 09:36:41 编辑

解决方案 »

  1.   

    IE.Document.Forms("ActionForm").elements("userName").value = "admin"
    IE.Document.Forms("ActionForm").elements("password").value = "123456"
    IE.Document.Forms("ActionForm").submit
      

  2.   

    IE.Document.Forms("ActionForm").elements("userName").value = "admin"
    IE.Document.Forms("ActionForm").elements("password").value = "123456"
    IE.Document.Forms("ActionForm").submit
      

  3.   

    WebBrowser1.Document.Forms("ActionForm").submit行吗?这是哪个页面?贴出来可测试.
      

  4.   

    WebBrowser1.Document.ActionForm.login.click
      

  5.   

    Dim Obj As Object
    Set Obj = WebBrowser1.Document
    Obj.All.userName.Value = Text1.Text
    Obj.All.password.Value = Text2.Text
    Obj.All.login.Click
    不知道行不