1.点击事件 1.可用与不可用交换 button1.Enabled = true;//可用 button1.Enabled = false;//不可以 适用于开关功能,记住将其中一个设为起始false,在属性栏enabled中