Good morning, I need to have the lines defined with the words "moved" stand out in green and the rest in red in the listbox. Here is my font painting method.
Private void DrawItem(object sender, System.Windows.Forms.DrawItemEventArgs e) { Brush mybrush = Brushes.Green; Brush mybrush2 = Brushes.Red; e.Graphics.DrawString(listbox1.items[e.Index].ToString(),e.Font, mybrush , e.Bounds, StringFormat.GenericDefault); } At the moment, everything is repainted in green, but it is necessary that only certain lines are colored. How can I do that? And yes, I use WinFoms.
