fix for lab3
This commit is contained in:
parent
fb17f2b58d
commit
4c409b841d
@ -63,7 +63,9 @@ namespace WinFormsLibraryVolkov
|
|||||||
{
|
{
|
||||||
if (checkedListBox.Items.Contains(value))
|
if (checkedListBox.Items.Contains(value))
|
||||||
{
|
{
|
||||||
|
int selectedIndex = checkedListBox.Items.IndexOf(value);
|
||||||
checkedListBox.SelectedItem = value;
|
checkedListBox.SelectedItem = value;
|
||||||
|
checkedListBox.SetItemChecked(selectedIndex, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user