faqts : Computers : Programming : Languages : Visual basic

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

10 of 18 people (56%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

How can I make VB fill in files in a webbrowser control?

Oct 19th, 2006 03:21
Chad Currie, R S I, http://www.blogvoid.com/


You can't, at least not by setting the value of the form element the 
same way as you would a normal text input box on a form.
When I've had to use a webbrowser control to do this, I've used 
sendkeys to emulate the TAB and then paste the value I wanted into the 
input box.
I believe this is for security reasons, for instance if you visited a 
website and they could automatically fill in and submit a file from 
your hard drive it would be a nightmare.