I am new to C#. I have a button and a combobox in my winform. I want to enabled my button right after selecting all items of the combobox one by one. Can anyone suggest me with this problem? As i am new so some sudo code will be highly appreciated.
thanks in advance
Loading

Akhil GargPosted Apr 10, 2015, 7:04 AM
Akhil GargPosted Apr 10, 2015, 7:12 AM
Nozibulla BasharPosted Apr 10, 2015, 7:10 AM
Akhil GargPosted Apr 10, 2015, 7:08 AM
cmb_selectionchanged(object sender,
System.EventArgs e)
{
String str=(sender as ComboBox).SelectedValue.ToString();
//Add that string in unilist if that string is already not present in list
//then check all the items are present
--if yes ---enable that button
--else disable that button
}
Nozibulla BasharPosted Apr 10, 2015, 6:48 AM
Akhil GargPosted Apr 10, 2015, 6:33 AM
If yes then Write a SelectionChanged Event and there you can check if all items are selected (iterate through loop) then make the button enable else make it disable.