private void MyCheckbox_CheckedChanged(object sender, EventArgs e)
{
// Disable the Checked event
MyCheckbox.CheckedChanged -= MyCheckbox_CheckedChanged;
// Your code here...
// Re-enable the Checked event
MyCheckbox.CheckedChanged += MyCheckbox_CheckedChanged;
}
c# 禁用wiform checkbox 事件
最新推荐文章于 2024-03-07 10:14:52 发布