H
Henry Jones
I found some code to change the font on a button to bold:
private void btnBold_Click(object sender, System.EventArgs e)
{
btnCalculate.Font = new Font(btnCalculate.Font,
btnCalculate.Font.Style | FontStyle.Bold);
}
everything is cool. It works. I then wanted to change the font back to
normal:
private void btnNormal_Click(object sender, System.EventArgs e)
{
this.btnCalculate.Font = new Font(btnCalculate.Font,
btnCalculate.Font.Style | FontStyle.Regular);
}
It doesn't work. Why can't I change the font back to Normal?
Thank you.
private void btnBold_Click(object sender, System.EventArgs e)
{
btnCalculate.Font = new Font(btnCalculate.Font,
btnCalculate.Font.Style | FontStyle.Bold);
}
everything is cool. It works. I then wanted to change the font back to
normal:
private void btnNormal_Click(object sender, System.EventArgs e)
{
this.btnCalculate.Font = new Font(btnCalculate.Font,
btnCalculate.Font.Style | FontStyle.Regular);
}
It doesn't work. Why can't I change the font back to Normal?
Thank you.