Is there a way when using the Internet transfer control that I can monitor how much of the file has been sent because I want to use a progress bar with my program telling me how much of the file has been sent so far??
Printable View
Is there a way when using the Internet transfer control that I can monitor how much of the file has been sent because I want to use a progress bar with my program telling me how much of the file has been sent so far??
Doesn't the control have a ProgressChange Property?
It has a StateChanged property but I don't really know if that could be used to track how much of a file has been sent.
Excuse me but I already view the code necessary but I don't remember where and when.
Although, there is this Microsoft code that use the GetChunck method to retrieve any kind of data, reading the data in blocks of 1024 bytes, where you can take the amount of bytes transfered.
Take a look at http://msdn.microsoft.com/library/de...fercontrol.htm and see the Using the State Event with the GetChunk Method section that it will be useful.
Isn't the GetChunk only used for data being received and not data being sent? How do you monitor how much data has been sent?