Some peolpe have asked how to change the backcolor of specific rows of a RichTextBox (ALL THE ROW!), i.e. to change color every new line, and ALL people INCREDIBLY answers suggesting the SelectionBackColor method.
But the SelectionBackColor method ONLY CHANGES THE BACKGROUND COLOR IF THERE IS TEXT, if there is not text the method don't works.
So now I try again: is there a method to change, for every line of a RichTextBox, the background color of ALL THE LINE, like in a ListBox?
I can't use a ListBox because I need, too, to change the color of specific words... I can do easily that in a RichTextBox, but I can't in a ListBox.
But the SelectionBackColor method ONLY CHANGES THE BACKGROUND COLOR IF THERE IS TEXT, if there is not text the method don't works.
So now I try again: is there a method to change, for every line of a RichTextBox, the background color of ALL THE LINE, like in a ListBox?
I can't use a ListBox because I need, too, to change the color of specific words... I can do easily that in a RichTextBox, but I can't in a ListBox.