public void SetItemCheckState(int index, CheckState state) { if (index < 0 || index > Items.Count) { throw new ArgumentOutOfRangeException(nameof(index), @"value out of range"); } else { listBox.SetItemCheckState(index, state); // Need to update the Text. displayText = GetTextValue(); } }