Changed: attempted to reduce flickering

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

No files matched your search

+1
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);
+2 -4
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);
});
}