Create Custom Download Manager for VB Webbrowser?!
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.
mandai wrote:You should go with the first suggestion.ok,then on filedownload add e.cancel=true
then filter out the file with something like if e.url.endswith=".exe"
then add downloader as webclient downloader.downloadfileasync(url) ? something like this ?
Yeah, that's it. But if filedownload event doesn't works well, add the same code to navigating event. A better idea to see if it is a download is to add a huge list of extensions to your resources or a specializedstring in your settings. And then in the code, compare if the endswith property is similar to any extension or not.
Usman55 wrote:Yeah, that's it. But if filedownload event doesn't works well, add the same code to navigating event. A better idea to see if it is a download is to add a huge list of extensions to your resources or a specializedstring in your settings. And then in the code, compare if the endswith property is similar to any extension or not.Ok...
thanks , you Guys are really helpfull

Yes I am, and we all are. THat's what this community is all about.
i just tryd the Code but it doesnt work ,
the e.cancel dont work on FileDownload Event ...
i wonna Download a FLV File from a Website trough a JavaScript but anyway i dont get it working ,
i have a JavaScript and when i Navigate on the current Page with it , it directly opens me the Download Dialog from the WebBrowser , but i wonna download the File without that Dialog , someone knows good code ?
the e.cancel dont work on FileDownload Event ...
i wonna Download a FLV File from a Website trough a JavaScript but anyway i dont get it working ,
i have a JavaScript and when i Navigate on the current Page with it , it directly opens me the Download Dialog from the WebBrowser , but i wonna download the File without that Dialog , someone knows good code ?
The FileDownload event doesn't contain any useful information in e. You could use WebClient.DownloadFile to download the flv file.
I used the same thing in my downloader the source of which I'm going to release, mandai. But I think he is asking how to cancel it and after that down it on his own.
Yes , so my JavaScript is open the Direct Download for the File , but i wonna Download the File with my own Downloader,but i cant get it working...
Try the method which mandai supplied at first. In there put the code e.cancel and the code to open the downloader and also add the code to add the url to the downloader's textbox.
Copyright Information
Copyright © Codenstuff.com 2020 - 2023