Hi, I am a newcomer to Visual Studio 2005 and am having trouble making a timer which will work out the time it takes to download a file. The file is 45 kb and the user can change the speed with a scrollbar, which is called hsbSpeed, from 1 – 10 kbps. The timer will then work out the download time and count down to zero.
I was thinking along the line of this:
Counter = (45 \ hsbSpeed.Value) - 1
txtCount.Text = Counter
but it only subtracts once and stops. I tried using a loop but that also didn’t work :
Counter = 45 \ hsbSpeed.Value
Do While (Counter > 0)
Counter = Counter - 1
Loop
txtCount.Text = Counter
Any ideas on how to solve this?