Change Color Dynamically in RichTextBox

Posted by Ajay.Kalol under C# on 3/15/2013 | Points: 10 | Views : 1149 | Status : [Member] | Replies : 0
Hi,

I have a Richtextbox in My Form. and Button,textbox,Combobox with item 1,2,3.

i have to change color of text inserted in textbox when display in RTB. but diff. text with Diff. color

e.g

switch(CB.text)
case"1":
// red color 10 em font etc..
case "2" :
// blur color
case "3" :
// lime Color.


Problem is that. when I insert first two text Like insert A then B it works fine but when I insert third text C then first twi text style become same..

Please help if you know..

Thanks..

Ajay
ajaypatelfromsanthal.blogspot.in



Responses

(No response found.)

Login to post response