I've seen hundreds of unanswered posts on the ListView and related control flicking issues. This arise in the form of an unsuccessful paint of the ListView where edges are not completed or excessive flickering occurs. This seem very prevalent when the ListViews are inserted on tab controls it panels.While optimizing my app I added the following code:
[code=C#]
protected override CreateParams CreateParams
{
get
{
CreateParams cp = base.CreatePara ms;
cp.ExStyle |= 0x02000000;
return cp;
}
}
[/code]
Much later I noticed flicking and redrawing issues and spent an embarrassing amount of time tracking down the root cause, which happened to be this one override. I should have known it was too good to be true. For those of you stuck in the same situation I was I hope this helps. Remove this override and you're back to business as usual.
[code=C#]
protected override CreateParams CreateParams
{
get
{
CreateParams cp = base.CreatePara ms;
cp.ExStyle |= 0x02000000;
return cp;
}
}
[/code]
Much later I noticed flicking and redrawing issues and spent an embarrassing amount of time tracking down the root cause, which happened to be this one override. I should have known it was too good to be true. For those of you stuck in the same situation I was I hope this helps. Remove this override and you're back to business as usual.