diff --git a/VolkovLabs/WinFormsLibraryVolkov/VisualComponents/CustomSelectedCheckedListBox.cs b/VolkovLabs/WinFormsLibraryVolkov/VisualComponents/CustomSelectedCheckedListBox.cs index 9449a6c..693179a 100644 --- a/VolkovLabs/WinFormsLibraryVolkov/VisualComponents/CustomSelectedCheckedListBox.cs +++ b/VolkovLabs/WinFormsLibraryVolkov/VisualComponents/CustomSelectedCheckedListBox.cs @@ -63,7 +63,9 @@ namespace WinFormsLibraryVolkov { if (checkedListBox.Items.Contains(value)) { + int selectedIndex = checkedListBox.Items.IndexOf(value); checkedListBox.SelectedItem = value; + checkedListBox.SetItemChecked(selectedIndex, true); } } }