I need to display text in a RichtTextBox with a green striped background. This means, the first line has a white background-color, the second has a green background-color, the third has white, the next green again etc.
How can I implement this?
The only way I imagine at the moment is setting the color for every textline. But I would have to fill each line with spaces to get whole lines. This way seems to be bad practice to me.
I think about something like OnPaint event, etc. where I can set the background color for every line before text is displayed.
If there is another TextControl that can handle my problem or I have to implement an own control this is an acceptable solution, too. Just give me some hint.
P.S.: I'm using .Net2.0.