I have a progress bar with Minimum=0 and Maximum=1000.
Now I have long FileSize=1454545454 and long BytesSent (example). How to calculate progress bar position? I always lose precision or something :/
Edit:
Solved… I forgot to cast like: (decimal) BytesSent. You guys did same:P
Thx for answers. Debbuger always helps.
Or: