private void machineCheckBox_Click(object o, EventArgs e)
{
if (this.machineCheckBox.CheckState == CheckState.Indeterminate)
{
this.machineCheckBox.Checked = true;
}
else
{
this.machineCheckBox.Checked = !this.machineCheckBox.Checked;
}
bool isChecked = this.machineCheckBox.Checked;
}
如题导致不能进入
if (this.machineCheckBox.CheckState == CheckState.Indeterminate)
我又试过另一个是先处理事件在改变checkBox勾选