Private void radioButton1_CheckedChanged (object sender, System. EventArgs e)
{
// Set the font to
TextBox1.Font = new Font ("", textBox1.Font. Size, textBox1.Font. Style );
}
Private void radioButton4_CheckedChanged (object sender, System. EventArgs e)
{
// Set the font size to 12 www.2cto.com.
TextBox1.Font = new Font (textBox1.Font. FontFamily, 12, textBox1.Font. Style );
}
Private void checkbox#checkedchanged (object sender, System. EventArgs e)
{
// Set the font style to bold
If (checkBox1.Checked)
TextBox1.Font = new Font (textBox1.Font, textBox1.Font. Style | FontStyle. Bold );
Else
TextBox1.Font = new Font (textBox1.Font, textBox1.Font. Style ^ FontStyle. Bold );
}
Private void checkBox2_CheckedChanged (object sender, System. EventArgs e)
{
// Set the font style to tilt
If (checkBox2.Checked)
TextBox1.Font = new Font (textBox1.Font, textBox1.Font. Style | FontStyle. Italic );
Else
TextBox1.Font = new Font (textBox1.Font, textBox1.Font. Style ^ FontStyle. Italic );
}
From Bychentufeiyang's column