Drag listbox item text to textbox with remove functionality something like tags section have on this site have remove button
<p>I am trying to drag a item text from listbox to textbox. i have  been successfully doing this with following code</p>

<pre><code> private void lstFields_MouseDown(object sender, MouseEventArgs e)
    {
        ListBoxControl c = sender as ListBoxControl;
        p = new Point(e.X, e.Y);
        int selectedIndex = c.IndexFromPoint(p);
        if (selectedIndex == -1)
            p = Point.Empty;
    }

    private void lstFields_MouseMove(object sender, MouseEventArgs e)
    {
        if (e.Button == MouseButtons.Left)
            if ((p != Point.Empty) &amp;&amp; ((Math.Abs(e.X - p.X) &gt; 5) || (Math.Abs(e.Y - p.Y) &gt; 5)))
                lstFields.DoDragDrop(sender, DragDropEffects.Move);
    }


  void txt_DragOver(object sender, DragEventArgs e)
    {
        e.Effect = DragDropEffects.Move;

    }
    void txt_DragDrop(object sender, DragEventArgs e)
    {
        TextEdit textBox1 = sender as TextEdit;
        Point newPoint = new Point(e.X, e.Y);
        newPoint = textBox1.PointToClient(newPoint);
        int s = GetCharIndexFromPosition(textBox1, newPoint);
        object item = lstFields.Items[lstFields.IndexFromPoint(p)];

        if (textBox1.Text == "")
        {
            textBox1.Text = item.ToString();
        }          

    }
</code></pre>

<p>Now what i want user cant write any text in textbox, only item dragged form lisbox should be there in textbox. If user want to delete any item from textbox it should be delete with only one backpress button.</p>

<p>i.e if user drag [Calling Number] into textbox, then on pressing back button once the complete [calling number] will get removed at once. Only text dragged from listbox can be there in textbox or none text will be there.</p>
