How to prevent flickering in ListView when updating a single ListViewItem's text?

前端 未结 10 2222
囚心锁ツ
囚心锁ツ 2020-11-27 04:56

All I want is to update an ListViewItem\'s text whithout seeing any flickering.

This is my code for updating (called several times):

listView.BeginUp         


        
10条回答
  •  失恋的感觉
    2020-11-27 05:45

    The ListView in CommonControls 6 (XP or newer) supports double buffering. Fortunately, .NET wraps the newest CommonControls on the system. To enable double buffering, send the appropriate Windows message to the ListView control.

    Here are the details: http://www.codeproject.com/KB/list/listviewxp.aspx

提交回复
热议问题