在webbrowser中访问有表单的网页怎样选择各种表单的选项
如http://www.95557.com/test.htm
中我想选择单选框,复选框和下拉菜单的第二项
代码怎么写

解决方案 »

  1.   

    使用 DOCUMENT.FORMS(0) 来访问,然后就和没有表单时直接使用DOCUMENT对象一样了。
      

  2.   

    参考http://www.applevb.com/qa/qa_net_index.htm#
    怎么用vb script脚本读出网页中radio选的值? 
    怎么编程把用户名,密码提交到网页上的登录页?
      

  3.   


    Private Sub Command2_Click()
        With WebBrowser1.Document.Forms(0)
            .c2.Checked = 1
            .r1(1).Checked = 1
        End With
    End Sub
      

  4.   


    Private Sub Command2_Click()
        With WebBrowser1.Document.Forms(0)
            .d1.Options(1).Selected = 1
        End With
    End Sub