Enter Data on HTML or ASP Web Page from VB

Is there any way of getting a handle or ??? of say a tick box on a web page, from a vb executable program.
Ie. I need to enter several tick boxes on a web page from my vb program.
I know how to get the handle of another program running but not a web page.
kennedymrAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AzraSoundCommented:
You won't use a window handle to send messages to items on a webpage as they are not windows controls, they are html elements.  If you are talking about an open instance of Internet Explorer, then you have access to the DOM (Document Object Model) of the html page currently loaded inside of it, and you can manipulate it with code that would appear very similar to a scripted implementation (javascript or vbscript).  If you are talking about any browser, such as Netscape or Opera, you may be stuck using some ugly workarounds (unless they provide some sort of techniques in their respective SDKs).
0
kennedymrAuthor Commented:
I would be using Inernet Explorer.
Sounds pretty complicated!!!!
May have to give this idea a miss.
0
AzraSoundCommented:
Example, set a reference to Microsoft Internet Controls


Dim shWin As New ShellWindows
Dim IE As InternetExplorer


For Each IE In shWin
    If IE.LocationURL = "http://www.site.com" Then
        'you now know the instance of IE to target and set values for
        IE.Document.all("chkBox").checked = True
    End If
Next


Where the html may look like:

<input type="checkbox" name="chkBox">
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
kennedymrAuthor Commented:
Appreciate your help.
I can see the method, and will give it a go. Thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.