2015-06-22
现学现卖,这样可行?
button Click代码
private void button1_Click(object sender, EventArgs e)
{
if (button1.Font.Bold == false && button1.Font.Italic == false && button1.Font.Underline == false)
{
button1.Font = new System.Drawing.Font("宋体", 9f, ((System.Drawing.FontStyle)(((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic)
| System.Drawing.FontStyle.Underline))));
}
else
{
button1.Font = new System.Drawing.Font("宋体", 9f);
}
}
是有3个按钮,分别是加粗,斜体,下划线
额,你以后还是别当项目经理了,你当项目经理的话你的员工会为你自杀的!
button Click代码