locked
combo Box Multi Select RRS feed

  • Question

  •  

    How to select and access multipule items from COmbo Box

    Tuesday, April 4, 2006 8:43 AM

Answers

  • hi,

    i don't think combobox was made for multiple selections, may be you can use ListBox for that

    hope that helps

    Tuesday, April 4, 2006 9:14 AM
  • Hi

    I think the checkedListBox1 should do the trick.


    // Determine if there are any items checked.

    if (checkedListBox1.CheckedItems.Count != 0)

    {

    // If so, loop through all checked items.

    for (int x = 0; x <= checkedListBox1.CheckedItems.Count - 1; x++)

    {

    MessageBox.Show("Checked :" + checkedListBox1.CheckedItems[x].ToString());

    }


    Tuesday, April 4, 2006 10:12 AM

All replies

  • hi,

    i don't think combobox was made for multiple selections, may be you can use ListBox for that

    hope that helps

    Tuesday, April 4, 2006 9:14 AM
  • Hi

    I think the checkedListBox1 should do the trick.


    // Determine if there are any items checked.

    if (checkedListBox1.CheckedItems.Count != 0)

    {

    // If so, loop through all checked items.

    for (int x = 0; x <= checkedListBox1.CheckedItems.Count - 1; x++)

    {

    MessageBox.Show("Checked :" + checkedListBox1.CheckedItems[x].ToString());

    }


    Tuesday, April 4, 2006 10:12 AM
  • CheckedListBox doesn't allow multi select mode

    Regards MS Arain

    Friday, January 24, 2014 5:23 PM