daily pastebin goal
33%
SHARE
TWEET

Untitled

a guest Apr 16th, 2018 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. private void Form1_Load(object sender, EventArgs e)
  2. {
  3.             CheckedListBox1.Sorted = true;
  4.             CheckedListBox1.TopIndex = 0;
  5.             CheckedListBox1.CheckOnClick = true;
  6.             CheckedListBox1.SelectionMode = SelectionMode.One;
  7. }
  8.  
  9. private void CheckedListBox1_ItemCheck(object sender, ItemCheckEventArgs e)
  10. {
  11.             for (int ix = 0; ix < CheckedListBox1.Items.Count; ++ix)
  12.             {
  13.                 if (ix != e.Index)
  14.                 {
  15.                     CheckedListBox1.SetItemChecked(ix, false);
  16.                 }
  17.             }
  18. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top