Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27516

[VB2010] Backcolor of the WHOLE line of a Rich text Box

$
0
0
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.

Viewing all articles
Browse latest Browse all 27516

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>