当我悬停行(而不是列表中的空白区域)时,我的.NET Winforms ObjectListView闪烁。
我已经读到,使用VirtualMode时可能会发生这种情况,但我没有。
我的列表中只有2个项目,我没有刷新。
我为父窗口设置了DoubleBuffered = true
。
关于如何停止闪烁或为什么发生闪烁的任何建议?
请确保您有
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
运行表单之前。
为列表视图控件设置这些属性:
Activation = System.Windows.Forms.ItemActivation.Standard;
HotTracking = false;
HoverSelection = false;