newprogram
New member
- Joined
- Sep 9, 2006
- Messages
- 3
- Programming Experience
- Beginner
Hi im new to this forum and to vb2005 iv used alot of vb6 but this is kind of confusing for me in vb6 to fill in a forum on a webpage I used this
WebBrowser1.Document.getElementById("q").Value = "me"
or
Dim HTMLI As HTMLInputElement
Dim HTML As HTMLDocument
Set HTML = WebBrowser1.Document
Debug.Print HTML.documentElement.innerText
If InStr(HTML.documentElement.innerText, "One or more fields are missing or incorrect") Then Exit Sub
For Each HTMLI In HTML.getElementsByTagName("input")
If HTMLI.Name = "q" Then
HTMLI.Value = Text2
ElseIf HTMLI.Name = "btnG" Then
HTMLI.Click
How do I do this in vb2005?
WebBrowser1.Document.getElementById("q").Value = "me"
or
Dim HTMLI As HTMLInputElement
Dim HTML As HTMLDocument
Set HTML = WebBrowser1.Document
Debug.Print HTML.documentElement.innerText
If InStr(HTML.documentElement.innerText, "One or more fields are missing or incorrect") Then Exit Sub
For Each HTMLI In HTML.getElementsByTagName("input")
If HTMLI.Name = "q" Then
HTMLI.Value = Text2
ElseIf HTMLI.Name = "btnG" Then
HTMLI.Click
How do I do this in vb2005?