int box=0;
private void From_Load(object sender, EventArgs e)
{
checkBox1.CheckedChanged += (a, b) =>
{
if (checkBox1.Checked)
{
ckb.Checked = true;
}
else
{
if (box == 1)
{
return;
}
else if (box == 0)
{
ckb.Checked = false;
}
}
};
}
C#在load事件中写checkBox方法
最新推荐文章于 2024-07-15 15:25:18 发布