Saturday 15 June 2013

c# - Progressbar that has more than 100 files to Upload -


I am currently developing a progress bar (using Winforms) which will be displayed when the e-mail is uploaded. . The problem I am facing now is that if I upload more than 100 e-mails, the progress bar will not be loaded.

Here is the method that is used to determine the amount for the progress bar, for each email (if there are 2 e-mails, then give me 2 times 50% If it does this in 25% of the phase .........):

  Public status upload (int uploaded import) {InitializeComponent (); Progress 1 Step = 100 / uploadmount; } Do anyone know how I can solve this problem? Thank you very much in advance, your help has been appreciated   

simply max Set the value of the progress bar and the magnitude of each email for the number of emails as it has been sent. Given that, no additional calculation will be needed, eg

  progress 1 Max = numberofmail; Foreach (different emails in email) {// Send Email Send Progress Close. value. + Value ++; }    

No comments:

Post a Comment