C#中Enabled是什么意思?比如:Form_Pass f9 = new Form_Pass();f9.Show();f9.form6 = this;this.Enabled = false;

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/05 18:15:48
C#中Enabled是什么意思?比如:Form_Pass f9 = new Form_Pass();f9.Show();f9.form6 = this;this.Enabled = false;

C#中Enabled是什么意思?比如:Form_Pass f9 = new Form_Pass();f9.Show();f9.form6 = this;this.Enabled = false;
C#中Enabled是什么意思?
比如:Form_Pass f9 = new Form_Pass();
f9.Show();
f9.form6 = this;
this.Enabled = false;

C#中Enabled是什么意思?比如:Form_Pass f9 = new Form_Pass();f9.Show();f9.form6 = this;this.Enabled = false;
Enable是控件及窗体的一个属性,类型为bool,表示“可不可用”.拿Button来说,其值为true时可用,False时不可用(就是你点击时没反应)且变为灰色;对于窗体正如楼上所说,此处不赘述.这个属性大多在程序中动态使某个控件可用与否,以防止用户错误操作