forum

Home / DeveloperSection / Forums / How do I change the text color of a rich text box that is is an MDI Parent Form?

How do I change the text color of a rich text box that is is an MDI Parent Form?

Anonymous User 1874 23-Sep-2013

I have Form1, which is an MDI form. In Form2 (ChildForm) I have a rich text box.

I have a menu strip that contains a "Format" option. Under this I have font, size, and color. Changing the font and size through the Font method was easy, but color seems to be a different story.

I also am not able to directly call on the rich text box since it is in the child form, and a new child form isn't being created upon the color change.

//when Black is clicked in Color/Format
private void blackToolStripMenuItem_Click(object sender, EventArgs e)
{
    //change color to black
}
//when Red is clicked in Color/Format
private void redToolStripMenuItem_Click(object sender, EventArgs e)
{
    //change color to red
}

wpf wpf 
Updated on 23-Sep-2013
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By