public void SetIndex(int index) { Index = index; ActionList.BeginUpdate(); ActionList.ClearSelected(); for (int i = 0; i <= Index; i++) { ActionList.SetSelected(i, true); } SelectedLabel.Text = TextDisplay(index); ActionList.EndUpdate(); }