Pho3nix
The Legend
Dammit it seems to be working with s around smaller files (>1gb) but nothing bigger as then it will go up to 99% and an error would occur. Will play around with it.. 
South Africa’s biggest forum. Discuss, discover, and connect with thousands of members.
Dammit it seems to be working with s around smaller files (>1gb) but nothing bigger as then it will go up to 99% and an error would occur. Will play around with it..![]()
Your right!!! But it seems the issue is the progressbar.Maximum property is an integer so any value that I set as the max has to be in the integer range.. This is going to take so thought
int fileLen = Convert.ToInt32((ulong)(sourceFile.Length)/1048576);
progBar.Maximum = fileLen;
int pro = ((int)totalBytesRead / 1048576);
progBar.Value = pro;
Ok tihs is what I didthenCode:int fileLen = Convert.ToInt32((ulong)(sourceFile.Length)/1048576); progBar.Maximum = fileLen;
From that I get this error on the progBar.Value : Value of '-2048' is not valid for 'Value'. 'Value' should be between 'minimum' and 'maximum'.Code:int pro = ((int)totalBytesRead / 1048576); progBar.Value = pro;
Using a 2.4Gb file. FileLen is 2236. Thoughts? Going to play around with this in the interim.