How do I check an item in a CheckedListBox when I use DragDrop
<p>I am using a drag and drop function on a CheckedListBox, for adding external files and changing order of items. Both those things are working (kind of) now. But the problem is that now you can't check a box.</p>

<p><em>The moment you check it - it gets unchecked.</em> I think it has to do with the DragDrop event handler. It doesn't matter if I have CheckOnClick on or off in the properties (I want it off, since you should be able to select an item without checking it). </p>

<p>I want the item to get checked when clicked (after selected) and I want it to stay checked when moved up and down in the box</p>

<p>Here are two handler I use for it:</p>

<pre><code>private void missionsBox_MouseDown(object sender, MouseEventArgs e)
{
      if (missionsBox.SelectedItem == null) return;
            missionsBox.DoDragDrop(missionsBox.SelectedItem, DragDropEffects.Move);
}

private void missionsBox_DragDrop(object sender, DragEventArgs e)
{
    Point point = missionsBox.PointToClient(new Point(e.X, e.Y));
    int index = missionsBox.IndexFromPoint(point);
    object data = e.Data.GetData(typeof(string));
    missionsBox.Items.Remove(data);
    missionsBox.Items.Insert(index, data);

}
</code></pre>

<p>Very grateful for any help here. I'm a noob.</p>
