Not sure how you are doing your D&D, but if you are using the Control
D&D events, one simple thing you could do is to move the selection are
you move the drop as below. To display a little line at the insertion
point would require more work.
void listBox2_DragOver(object sender, DragEventArgs e)
{
Point pt = this.listBox2.PointToClient(new Point(e.X, e.Y));
int index = this.listBox2.IndexFromPoint(pt);
if (index > -1 && index < list2.Count)
this.listBox2.SelectedIndex = index;
}
===============
Clay Burch
Syncfusion, Inc.
ClayB - 22 Feb 2007 11:16 GMT
You can find sample code in this FAQ entry that shows how to display a
red line at the drop site.
http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c87c.aspx#q610q
=====================
Clay Burch
Syncfusion, Inc.