Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

RichTextbox Deslect not working

$
0
0

Hi,

I wnat to deselect the text in rich text box. There is some text which is already selected and highlighted in green color.

Now I want to deselect that text.

Have tried several options, but nothing works...


rtbLogs_1.DeselectAll();
rtbLogs_1.SelectionBackColor = Color.White;

rtbLogs_1.SelectionLength = 0;

rtbLogs_1.Select(0,0);

rtbLogs_1.HideSelection();

I still see those previosuly selected text in green. please help me on this!


Viewing all articles
Browse latest Browse all 12583

Trending Articles



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