Here are the examples of the csharp api class System.Windows.Forms.Control.SuspendDrawing() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
5 Examples
0
1. Example
Project: Ego-Engine-Modding
Source File: Form1.cs
Source File: Form1.cs
private void closeAllToolStripMenuItem_Click(object sender, EventArgs e) { currentDgv.SuspendDrawing(); for (int i = 1; i < currentDgv.Columns.Count;) { currentDgv.Columns.RemoveAt(i); } currentDgv.ResumeDrawing(); currentPage.files.Clear(); }
0
2. Example
Project: SirenOfShame
Source File: ControlHelpers.cs
Source File: ControlHelpers.cs
public static void SuspendDrawing(this Control target, Action action) { target.SuspendDrawing(); try { action(); } finally { target.ResumeDrawing(); } }
0
3. Example
Project: im-only-resting
Source File: ControlHelpers.cs
Source File: ControlHelpers.cs
public static void SuspendDrawing(this Control target, Action action) { target.SuspendDrawing(); action(); target.ResumeDrawing(); }
0
4. Example
Project: Ego-Engine-Modding
Source File: Form1.cs
Source File: Form1.cs
private void setupPage() { // Back out if the page has already been SetUp if/n ..... /n //View Source file for more details /n }
0
5. Example
Project: Ego-Engine-Modding
Source File: Form1.cs
Source File: Form1.cs
private void showHideDifferencesToolStripMenuItem_Click(object sender, EventArgs e) { /n ..... /n //View Source file for more details /n }