Answers for "stop flickering"

C#
1

stop flickering

//How to stop flickering
//This answer is same for PictureBox, Form, Panel and etc.

//First, add this library.
using System.Reflection;

//change "MyPanel" with your panel name.
 typeof(Panel).InvokeMember("DoubleBuffered", BindingFlags.SetProperty| BindingFlags.Instance | BindingFlags.NonPublic, null,  MyPanel  , new object[] { true });
Posted by: Guest on August-04-2021

C# Answers by Framework

Browse Popular Code Answers by Language