Fill text box

  • Thread starter Thread starter Nikolay Petrov
  • Start date Start date
N

Nikolay Petrov

How to enumerate and fill text boxes in an WebBrowser control?

TIA
 
Nikolay,

I am not aware that there are textboxes in a WebBrowser control, so can you
explain this a little bit more?

Cor
 
Nikolay Petrov said:
How to enumerate and fill text boxes in an WebBrowser control?

\\\
With AxWebBrowser1.Document.forms(0)
.All("UserAccount").value = "username"
.All("AccessCode").value = "password"
.submit() ' Click the "Submit" button.
End With
///
 
HTML INPUT tag type=textbox


Cor Ligthert said:
Nikolay,

I am not aware that there are textboxes in a WebBrowser control, so can
you explain this a little bit more?

Cor
 
Nikolay Petrov said:
Option strict dissallows late binding at: .Document.forms(0)

You can either disable 'Option Strict' for the class/module or add a
reference to the MSHTML library which should provide the necessary types for
accessing forms ('HTMLDocumentClass' etc.).
 
Nikolay,

A webbrowser is the control with what you can emulate or better do interop
to IE using your own view with the axwebbrowser or directly with shdocvw to
IE.

There can be everytime on the document it loads and than lot of "input"
tags.

That does not mean that it is a property from the webbrowser.

So I still don't understand your question.

Cor
 
tnx

Herfried K. Wagner said:
You can either disable 'Option Strict' for the class/module or add a
reference to the MSHTML library which should provide the necessary types
for accessing forms ('HTMLDocumentClass' etc.).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top