Hello there,
My application is multithreaded it has f.ex 25 active threads, and each thread pushes it status to list view item by delegate.
example:
private delegate void SetBackColorDelegate(int index, Color color);
private void SetBackColor(int index, Color color)
{
if (listView1.InvokeRequired)
{
listView1.Invoke(new SetBackColorDelegate(SetBackColor), new object[] { index, color });
}
else
{
listView1.Items[index].BackColor = color;
}
}
Depending on status it changes item color and etc. And it twinkles a lot, it looks very nasty :)
Maybe you can suggest how to avoid this ? How to speedup drawing ? Or maybe I should consider of start using some different component ?