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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With