1

I am working in a winform application where I want to have a Combobox and it's dropdown should contain checkboxes like this:

enter image description here

These checkboxes are search conditions and I must be able to handle the check/Uncheck event of the checkboxes (at onetime i must be able to check/uncheck multiple checkboxes).

Any help or way to do !!!

Digambar Malla
  • 335
  • 2
  • 4
  • 20

2 Answers2

0

I would recommend using the ItemCheck event. It would look around these lines:

void checkedListBox1_ItemCheck(object sender, ItemCheckEventArgs e)
{
    //Code here
}

Additionally you can retrieve the state of the boxes like this CheckState.Checked

print x div 0
  • 1,474
  • 1
  • 15
  • 33
0

I would recommend taking a look at this page here: http://www.codeproject.com/Articles/31105/A-ComboBox-with-a-CheckedListBox-as-a-Dropdown

It shows how to implement a CheckedListBox into a Combobox which should solve your problem.

Marvin
  • 1
  • 2