Changed: attempted to reduce flickering

This commit is contained in:
Ray 2020-10-22 02:01:53 +01:00
parent 716fe09791
commit 99a563dad6
2 changed files with 3 additions and 4 deletions

View File

@ -23,6 +23,7 @@ namespace AppLauncher.Windows.Forms
this.BackColor = Color.FromArgb(250, 250, 250);
this.ContextMenuStrip = contextMenuStrip1;
this.DoubleBuffered = true;
label1.ForeColor = Color.FromArgb(99, 105, 119);
label1.Font = new Font(this.Font.FontFamily, 8.25F);

View File

@ -335,7 +335,7 @@ namespace AppLauncher.Windows.Forms
isAnimating = false;
this.Invalidate();
this.Invalidate(this.DisplayRectangle, false);
});
}
@ -353,8 +353,6 @@ namespace AppLauncher.Windows.Forms
while (this.Height < this.ExpandedHeight)
{
ThreadControl.SetHeight(this, (this.Height + expandIncrement));
this.Invalidate();
Thread.Sleep(10);
}
}
@ -363,7 +361,7 @@ namespace AppLauncher.Windows.Forms
isAnimating = false;
this.Invalidate();
this.Invalidate(this.DisplayRectangle, false);
});
}