How do I change the color of text to follow. e.g my text is as follows HI WELCOME TO
How do I change the color of the text to follow to the color blue with out selecting the text as there is none yet?
Thanks Ian
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Kirtan PatelPosted Nov 30, 2009, 8:31 PM
Here is Code how you can do this
//Select the Text And Press Apply Button to Change the color of selected Text
private void button1_Click(object sender, EventArgs e)
{
ColorDialog clrdlg = new ColorDialog();
if (clrdlg.ShowDialog() == DialogResult.OK)
{
richTextBox1.SelectionColor = clrdlg.Color;
}
}
theLizardPosted Dec 2, 2009, 6:45 PM
Ian DDPosted Dec 1, 2009, 6:45 PM
Hiren SoniPosted Nov 30, 2009, 10:21 PM