24-09-17, 07:44 PM
PHP كود :
private void checkedListBox1_ItemCheck(object sender, ItemCheckEventArgs e)
{
if (checkedListBox1.CheckedItems.Count >= 1 && e.CurrentValue != CheckState.Checked)
{
e.NewValue = e.CurrentValue;
MessageBox.Show("You can only check one item");
}
}
https://social.msdn.microsoft.com/Forums...m=winforms

