0
How to change color line in listbox by button c#
I have an exercise to change the colors of line in listbox- wpf help me
1 Respuesta
+ 1
You can use DrawItem event.
private void yourlistBox_DrawItem(object sender, DrawItemEventArgs e) {
e.DrawBackground();
Graphics g = e.Graphics; g.FillRectangle(new SolidBrush(Color.Red), e.Bounds); // Print text e.DrawFocusRectangle(); }
May that give you idea