From b57aa99d7109ee476368b1b6c3d4a1fd03a84c1c Mon Sep 17 00:00:00 2001 From: NYAN CAT Date: Sat, 1 Jun 2019 08:47:36 +0300 Subject: [PATCH] Add double buffer --- AsyncRAT-C#/AsyncRAT-Sharp/Forms/Form1.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/AsyncRAT-C#/AsyncRAT-Sharp/Forms/Form1.cs b/AsyncRAT-C#/AsyncRAT-Sharp/Forms/Form1.cs index 1c3c939..c375888 100644 --- a/AsyncRAT-C#/AsyncRAT-Sharp/Forms/Form1.cs +++ b/AsyncRAT-C#/AsyncRAT-Sharp/Forms/Form1.cs @@ -71,8 +71,14 @@ namespace AsyncRAT_Sharp } } + 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(); lvwColumnSorter = new ListViewColumnSorter(); this.listView1.ListViewItemSorter = lvwColumnSorter;