How to change the color of second line in RichText Box?
-
Hi all, Can any one please tell me that how can i change the color of second line in rich text box? My requirement is first line in richtext box should be blue and second line should be red. Thanks in advance Lijo
-
Hi all, Can any one please tell me that how can i change the color of second line in rich text box? My requirement is first line in richtext box should be blue and second line should be red. Thanks in advance Lijo
select the text and change selection color e.g.
RTB.SelectionColor = Color.Red;
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
----------------------------------------------- 128 bit encrypted signature, crack if you can
-
select the text and change selection color e.g.
RTB.SelectionColor = Color.Red;
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
----------------------------------------------- 128 bit encrypted signature, crack if you can
First you need to change the color of the text before putting it in the rtb. rtb.SelectionColor = System.Drawing.Color.Red; rtb.AppendText(outText); changing other attributes rtb.SelectionColor = System.Drawing.Color.Blue; System.Drawing.Font fBold = new System.Drawing.Font("Courier New", 10, fontBold); rtb.SelectionFont = fBold; rtb.AppendText(outText); good luck