I will have several checklist box in my project and all of them shall have the same behavior. How can I solve this so I don't need to add the following code for all CLB?
private void clbFieldprob_ItemCheck(object sender, ItemCheckEventArgs e)
{
for (int ix = 0; ix < clbFieldprob.Items.Count; ++ix)
if (ix != e.Index) clbFieldprob.SetItemChecked(ix, false);
clbFieldprob.ClearSelected();
}
Just like this.
Then select the control and select in the lightning(Execute for each CLB):
You can see three CLBs and three references in the demo.