title: .NET Compact framework (C#) : Add checkbox to Listbox
body: <p>I would like to add a checkbox control to a listbox control.</p>
  
  <p>The listbox has to contain A couple of tasks, and I have to check if a tasks has been opened before.</p>
  
  <p>I have a code sample, but it adds the checkbox as an object, not as a control</p>
  
  <pre><code>while (reader.Read())   
  {                    
     CheckBox c = new CheckBox().Enabled = false;
     c.Text = reader.GetString(0) + ". " + reader.GetString(1);
  
     try 
     { 
        if (int.Parse(reader.GetString(2)) &gt; 1) c.Checked = true; 
     } 
     catch(Exception ex)    
     {
  
        MessageBox.Show(ex.Message);    
     }    
     listTasks.Items.Add(c);
  }
  </code></pre>
  
  <p>Can someone help me out</p>
  
  <p>Thnx,
  Ruben</p>