读书人

如何用webbrowser控件实现自动填表并

发布时间: 2012-03-17 19:06:28 作者: rapoo

怎么用webbrowser控件实现自动填表,并自动按登陆键
想法是这样:通过
Dim htmldoc As HtmlDocument = WebBrowser1.Document
Dim a As String
If htmldoc.All( "TextBox1 ") IsNot Nothing Then
htmldoc.All( "TextBox1 ").InnerText = "20051512 "
End If
If htmldoc.All( "TextBox2 ") IsNot Nothing Then
htmldoc.All( "TextBox2 ").InnerText = "lilac718 "
End If
实现自动填写,可怎么实现自动按下登陆键呢?希望大虾们帮帮小弟。

[解决办法]
你在load事件中写好代码
填充数据,并触发按钮事件

读书人网 >VB Dotnet

热点推荐