2016-11-18 30 views

回答

0

DragDrop函数在释放掉落的对象时被调用。

首先,你必须让物体掉落在TableLayoutPanel中:

tablelayoutpanel.AllowDrop = true; 

然后,TableLayoutPanel中必须接受的下降(你可以在数据格式和值添加条件):

tablelayoutpanel.DragEnter += (o, args) => args.Effect = DragDropEffects.Move; 
+0

谢谢你这么多 – Tubaa