C#中 如何设置 按钮点击后变色。求大神!!!
我想做个餐饮的系统 ,包间被选定后由蓝色变成红色,大神们,怎么敲这部分代码。
2012-12-09 11:11
程序代码:private void button1_Click(object sender, EventArgs e)
{
button1.BackColor = button1.BackColor == Color.CornflowerBlue ? Color.Red : Color.CornflowerBlue;
}//这里是来回切换,你要用你自己的逻辑,关键就是设置背景色BackColor就可以了

2012-12-09 16:48
2012-12-10 00:13