AsyncRAT-C-Sharp/AsyncRAT-C#/Server/Helper/ListviewDoubleBuffer.cs
2019-06-23 06:41:10 +03:00

19 lines
508 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Server.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);
}
}
}