private void OutputList_SelectAll(object sender, EventArgs e) { OutputList.BeginUpdate(); for (int i = 0; i < OutputList.Items.Count; ++i) { OutputList.SetSelected(i, true); } OutputList.EndUpdate(); }