Colour Highlight Text in Richtextbox

Posted by bsirir-14684 under C# on 3/29/2012 | Points: 10 | Views : 3884 | Status : [Member] | Replies : 3
How to highlight the colour text in RichTextbox word by word..




Responses

Posted by: Sakthi.Singaravel on: 3/30/2012 [Member] Silver | Points: 25

Up
0
Down
Hi,

Here the code for highlight the colour text in RichTextbox.

Rtxt_box.Select(Start_Position, Length);
Rtxt_box.SelectionColor = Color.White;
Rtxt_box.SelectionBackColor = Color.Blue;


Regards,
Singaravel M

bsirir-14684, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hornstalk on: 5/12/2014 [Member] Starter | Points: 25

Up
0
Down
HighlightColor for highlighting text in richtextbox,
http://www.kettic.com/winforms_ui/csharp_guide/richtextbox_document_element_span.shtml

bsirir-14684, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Bandi on: 5/13/2014 [Member] [MVP] Platinum | Points: 25

Up
0
Down
refer
http://www.dotnetperls.com/richtextbox

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

bsirir-14684, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response