I'm using f.Invalidate()
to repaint graphics in my C# program but the graphic blinks as it refreshes. I'm also using e.Graphics.DrawImage()
inside the f_Paint()
method.
C# – How to avoid blinking in Form.Invalidate()
cinvalidation
Related Topic
- C# – How to use reflection to call a generic method
- C# – Case insensitive ‘Contains(string)’
- C# – How to get a consistent byte representation of strings in C# without manually specifying an encoding
- C# – Proper use of the IDisposable interface
- C# – Type Checking: typeof, GetType, or is
- C# – How to make an HTTP POST web request
- C# – Try-catch speeding up the code
- C# – How to call asynchronous method from synchronous method in C#
Best Answer
You need to set
DoubleBuffered
to true.Since it's a protected property, you'll need to make your own control: