Advertisement
Guest User

Checked List Box

a guest
Apr 25th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.32 KB | None | 0 0
  1. foreach(int indexChecked in checkedListBox1.CheckedIndices) {
  2.         // The indexChecked variable contains the index of the item.
  3.         MessageBox.Show("Index#: " + indexChecked.ToString() + ", is checked. Checked state is:" +
  4.                         checkedListBox1.GetItemCheckState(indexChecked).ToString() + ".");
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement