I build a listview which can add and clear items quickly without flicked effect. I filter the EraseBackground message to acheive this purpose.I want to keep the selected item highlighted until I select another item.using the following code, I can acheive
the result but having defects.
private void ListViewNF_MouseClick(object sender, MouseEventArgs e)
if (selectedindex != -1)
cancelSelectedListitem = this.Items[selectedindex];
if (selectedindex % 2 == 0)
cancelSelectedListitem.BackColor = Color.White;
View Complete Post