Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Winforms control showing text and supporting individual line coloring

For a Winforms application, I'm looking for a control which is able to show text and supports individual line colors (fore and background colors per line).

For instance, I'd like to have line 1 with a green background color and line 4 with red.

like image 360
kay.herzam Avatar asked Dec 22 '22 07:12

kay.herzam


1 Answers

A ListView control is probably the easiest thing for what you need (as long as it is just for display). Set its View property to List. Each item is a ListViewItem, on which you can set the foreground and background colours.

like image 117
adrianbanks Avatar answered Jan 23 '23 16:01

adrianbanks