Minimizing Treenode redrawing?

Tendy 1 Reputation point
2020-08-17T17:25:07.65+00:00

I ask this on stackover flow but this might be a more appropite place to post
After working with this treeview below I noticed that when I comment out Application.EnableVisualStyles(); the tree node are drawn significantly less which reduces flickering. I would do this however this changes the whole style of the application which is not something I want. I was wondering if anyone knows how disable that event or if there is a style setting that I could change on the treeview to cause the nodes only to be redrawn on selection and creation. Thanks https://pastebin.com/EKXQW4fw

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,903 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.