How can I set the protected DoubleBuffered
property of the controls on a form that are suffering from flicker?
C# – How to double buffer .NET controls on a form
c++doublebufferedflickerwinforms
Related Question
- C# – Deep cloning objects
- C# – How to enumerate an enum
- C# – Case insensitive ‘Contains(string)’
- C# – LINQ’s Distinct() on a particular property
- C# – How to update the GUI from another thread
- C# – How to remedy “The breakpoint will not currently be hit. No symbols have been loaded for this document.” warning
- C# – JavaScriptSerializer – JSON serialization of enum as string
- C# – How to Sort a List
by a property in the object
Best Solution
Here's a more generic version of Dummy's solution.
We can use reflection to get at the protected DoubleBuffered property, and then it can be set to true.
Note: You should pay your developer taxes and not use double-buffering if the user is running in a terminal services session (e.g. Remote Desktop) This helper method will not turn on double buffering if the person is running in remote desktop.