Create it to enable double buffer

This commit is contained in:
NYAN CAT 2019-06-01 12:10:51 +03:00
parent 60b3db86e4
commit 8c59cc05d4

View File

@ -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);
}
}
}