Hi,
I just wondering if someone let me know how I can have multi color text in RichTextBox?
Lets say I have two combBoxes as below:
private ComboBox color = new ComboBox();
color.Items.Add("Red");
color.Items.Add("Green");
color.Items.Add("Blue");
//and
private ComboBox shape = new ComboBox();
shape.Items.Add("Rect");
shape.Items.Add("Circle");
shape.Items.Add("Triangle");
I also have a RichTextBox which has it's own Foreground property set to Black color.
Now I want to add Items from Combobox(color) in RED and Items from Combobox(shape) in GREEN into the RichTextBox while items has been selected in comboboxes.
Could you please give me an idea how I can do that?
Thanks
Behrouz