i'm working on checkbox multiple selection would goto list box

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • venkat naidu
    New Member
    • Feb 2011
    • 2

    i'm working on checkbox multiple selection would goto list box

    if (checkedListBox 1.CheckedItems! = null)
    {
    for (int i = 0; checkedListBox1 .CheckedItems.C ount; i++)
    {
    listBox1.Items. Add(checkedList Box1.CheckedIte ms[i].ToString());
    checkedListBox1 .Items.RemoveAt (checkedListBox 1.SelectedIndex );
    }

    Error:But it is showing the cannot implicitly convert int to bool
    please reply me as soon as possible
    thank ful
  • Leito
    New Member
    • Apr 2010
    • 58

    #2
    Which line raises the error ?

    Code:
    if (checkedListBox1.CheckedItems!= null)
    For me, you should write something more like this:
    Code:
    if (checkedListBox1.CheckedItems != 0)

    Comment

    Working...