Hi,

I'm trying to make a notepad in Visual Studio 2010 but I have a problem.
I want to edit the font and color for richTextBox1, but it wont work.
Here's the code:

private void fontToolStripMenuItem_Click(object sender, EventArgs e)
        {
            fontDialog1.ShowDialog();
        }

        private void colorToolStripMenuItem_Click(object sender, EventArgs e)
        {
            colorDialog1.ShowDialog();
        }

Where do you save the results of these dialogs? Where do you set the RTF font and color?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.