Fix progressbar wiggling
This commit is contained in:
parent
9692a802d0
commit
a8bca3de98
@ -57,6 +57,7 @@
|
||||
this.progressBar1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.progressBar1.Location = new System.Drawing.Point(88, 65);
|
||||
this.progressBar1.MarqueeAnimationSpeed = 0;
|
||||
this.progressBar1.Name = "progressBar1";
|
||||
this.progressBar1.Size = new System.Drawing.Size(212, 17);
|
||||
this.progressBar1.TabIndex = 2;
|
||||
|
||||
@ -38,6 +38,10 @@ namespace LibationWinForms.ProcessQueue
|
||||
}
|
||||
public void SetProgrss(int progress)
|
||||
{
|
||||
//Disabvle slow fill
|
||||
//https://stackoverflow.com/a/5332770/3335599
|
||||
if (progress < progressBar1.Maximum)
|
||||
progressBar1.Value = progress + 1;
|
||||
progressBar1.Value = progress;
|
||||
}
|
||||
public void SetRemainingTime(TimeSpan remaining)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user