VB How-ToAsk your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
I want to be able to fill in a web form from VB 6. I also want to be able to capture the HTML results (in a text string for example) after the the form is posted. Any help would be greatly appreciated.
Private Sub Form_Load()
Set web = New WebBrowser
Set web = CreateObject("internetexplorer.application")
web.Navigate2 "http://website address/"
web.Visible = True
End Sub
Second fill in the form
Private Sub FillForm()
web.Visible = True
web.Document.Forms(0).USERID.Value = "111111"
web.Document.Forms(0).PASSWORD.Value = "password"
End Sub