Send keystrokes to webpage

woklet

Member
Joined
Mar 4, 2005
Messages
15
Programming Experience
5-10
I’m looking for some code snippets on how to identify and change the value of a text box within a webpage in VB.NET and Internet Explorer. I’m using the axWebBrowser control on my form to display the web page and then do a directcast of my axWebBrowser to get my HTML doc.



Dim doc As mshtml.HTMLDocument = DirectCast(Me.AxWebBrowser1.Document, mshtml.HTMLDocument)



If I navigate to a web page, let’s take www.yahoo.com for example, how can I determine how the search text box is referenced and how I could send keystrokes to that search text box in my axWebBrowser control?



Any thoughts on this would be appreciated

Thanks in advance

Ben
 
Top Bottom