Create it to enable double buffer
This commit is contained in:
parent
60b3db86e4
commit
8c59cc05d4
19
AsyncRAT-C#/AsyncRAT-Sharp/Helper/ListviewDoubleBuffer.cs
Normal file
19
AsyncRAT-C#/AsyncRAT-Sharp/Helper/ListviewDoubleBuffer.cs
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user