View Single Post
  #9 (permalink)  
Old February 27th, 2004, 07:02 AM
pgtips pgtips is offline
Friend of Wrox
Join Date: Jun 2003
Location: , , United Kingdom.
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post

I would use VB's WebBrowser control for this (you need to add "Microsoft Internet Controls" to your project for this). Drop one on a form, use the Navigate method to open the page you want, then WebBrowserName.document will give the DOM for that page and you can use standard DHTML syntax, like this:
With WebBrowserName.document
    .formname.fieldname.value = "whatever you want"
End With

Note: make sure the page has loaded completely before trying to update the fields - there's an event for this, DownloadComplete or NavigateComplete - I forget which one...

Reply With Quote