I still have not dealt with checkedListBox1. The program I want to do will benefit from its use, and not to use the many flags.
I have a code:
private void checkedListBox1_SelectedIndexChanged(object sender, EventArgs e) { int selected = checkedListBox1.SelectedIndex; this.Text = checkedListBox1.Items[selected].ToString(); }
The problem is that every time I click on a field and it is highlighted, it selects the selected object. I am looking to recognize changes in the selected rather than the highlighted.
What I also want to know says that if the first index element in CheckListBox is checked, as well as the third, how would I check if this is true or not?
I am sure that I will come up with this in the end, but it will help a lot to see the code.
Say I have 3 boxes: Insert A = messageBox.Show ("a"); Insert B = messageBox.Show ("b"); Insert C = messageBox.Show ("c");
Only mbox will be displayed if checked. I want to know how to do this in order to check if, for example, A and C are checked, so that if I clicked the button, the two message boxes would display "a" and then "c"
c # winforms checkedlistbox selectedindexchanged
Pichu Oct. 25 2018-12-12T00: 00Z
source share