File input
Do you need something made? then ask in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
3 posts
Page 1 of 1
Hello,
There is a webpage with a file input.
How can I put a file in the input with VB?
gille
There is a webpage with a file input.
How can I put a file in the input with VB?
gille
Populate the file input box on a webpage with the location/filename you wish to upload?
Using a webbrowser control and knowing the file input element ID on the page you could do something like this:
Hope that helps cooll;
Using a webbrowser control and knowing the file input element ID on the page you could do something like this:
Code: Select all
If you struggle with that code please post back with the webpage url which contains the file input box your trying to fill in and I will see if I can get you the code for it.Dim Element As HtmlElementCollection = WebBrowser1.Document.All
WebBrowser1.Document.GetElementById("FileInputElement").SetAttribute("value", "C:\MyFileToUpload.zip")
Hope that helps cooll;
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
Thanks, but an input field hasn't a value-attribute.
I would like to upload a file on 2shared: http://www.2shared.com/
I would like to upload a file on 2shared: http://www.2shared.com/
3 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023