Visual Basic

Moderators: None (Apply to moderate this forum)
Number of threads: 18011
Number of posts: 55384

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Filling Web data forms in Webbrowser control Posted by snickers on 3 May 2009 at 9:08 AM
Hi, I'm having a problem filling in forms which have an file input type (a file browser/upload field). Here is a sample of the HTML that I'm trying manipulate:

<input type="file" id="toupload" name="toupload" size="30" />

I've been able to fill in the values of text fields and other things just fine by using something like this:

WebBrowser1.Document.All.Item("firstname").SetAttribute("value", FirstName)

However, it obviously doesn't work for file inputs because they don't have a value to change. Does anyone know how I can do this?



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.