hi there guys I need help how do I make my check box a single click one? I have to double click my checkbox in order to select a particular item but I want to just click once. Any ideas how?
king03
0
Junior Poster in Training
Recommended Answers
Jump to PostAdd a handler to the SelectedIndexChanged
private void checkedListBox1_SelectedIndexChanged(object sender, EventArgs e) { int i = checkedListBox1.SelectedIndex; checkedListBox1.SetItemChecked(i, !checkedListBox1.GetItemChecked(i)); }
This does have an issue that it's now harder to unselect an item :)
All 3 Replies
Momerath
1,327
Nearly a Senior Poster
Featured Poster
skatamatic
371
Practically a Posting Shark
king03
0
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.