diff --git a/AsyncRAT-C#/AsyncRAT-Sharp/Helper/ListviewDoubleBuffer.cs b/AsyncRAT-C#/AsyncRAT-Sharp/Helper/ListviewDoubleBuffer.cs new file mode 100644 index 0000000..fa02fd7 --- /dev/null +++ b/AsyncRAT-C#/AsyncRAT-Sharp/Helper/ListviewDoubleBuffer.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Reflection; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace AsyncRAT_Sharp.Helper +{ + public static class ListviewDoubleBuffer + { + public static void Enable(ListView listView) + { + PropertyInfo aProp = typeof(Control).GetProperty("DoubleBuffered", BindingFlags.NonPublic | BindingFlags.Instance); + aProp.SetValue(listView, true, null); + } + } +} \ No newline at end of file