![]() ![]() ![]() TOU (Terms Of Use) and make sure you are not violating any of them. However, before downloading files be sure to check out the websites If you are trying to download the file asynchronously so its not blocking and want to show the progress in a progressbar then you could try setting your code up something like this. I'll wait for you to reply before i continue on, but John is right - no events are available with the synchronous mode of the download. There's still a way to do that and get the progress along the way, although you won't be using an event. If you choose to set it up synchronously, like you have it, then understand that it's a blocking mode - your UI will be totally unresponsive. I can show you another way to get that information though, if you're interested. If you choose to use the asynchronous method, then you might be stuck on what I brought up earlier about e.TotalBytesToReceive. Send it the integer value of that calculation. If you're talking about 5.5 gigs, you're in excess of the maximum value (an Int32), at least if I did the math right - which I may not have.Įither way though, I think you're better off to always set the minimum to 0, the maximum to 100, then compute the percentage in code. First is how you're setting up your ProgressBar. ![]() I don't think you're out of the woods yet though. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |