Changing the Selected Item's Backcolor in a ListBox

Changing the Selected Item's Backcolor in a ListBox

if ((e.State & DrawItemState.Selected) == DrawItemState.Selected)
     e = new DrawItemEventArgs(e.Graphics, e.Font, e.Bounds, e.Index, 
     e.State ^ DrawItemState.Selected, e.ForeColor, Color.Red);

http://www.codeguru.com/csharp/csharp/cs_controls/custom/article.php/c13423/#more

Kommentare sind geschlossen

Tags