Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ObjectListView flickering when row hovered

My .NET Winforms ObjectListView is flickering when I hover the rows (not the empty space in the list).

I have read that this can happen when using VirtualMode, but I am not.

I only have 2 items in my list and I am not refreshing it.

I have set DoubleBuffered = true for my parent window.

Any suggestions on how to stop the flickering, or why it is occurring?

like image 411
stuzor Avatar asked Feb 08 '26 01:02

stuzor


1 Answers

Make sure you have

Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false); 

before running the form.

like image 166
alexrait Avatar answered Feb 12 '26 06:02

alexrait