Fix Drag&Drop

Just do it manually after initialization. No way to bind the events in
the designer.
This commit is contained in:
Kurt 2015-11-22 10:45:44 -08:00
parent 62eddb6aec
commit 0d23f53d84

View File

@ -59,7 +59,23 @@ public Main()
// Box Drag & Drop
foreach (PictureBox pb in PAN_Box.Controls)
{
pb.AllowDrop = true;
pb.DragDrop += tabMain_DragDrop;
pb.DragEnter += tabMain_DragEnter;
}
foreach (TabPage tab in tabMain.TabPages)
{
tab.AllowDrop = true;
tab.DragDrop += tabMain_DragDrop;
tab.DragEnter += tabMain_DragEnter;
}
foreach (TabPage tab in tabBoxMulti.TabPages)
{
tab.AllowDrop = true;
tab.DragDrop += tabMain_DragDrop;
tab.DragEnter += tabMain_DragEnter;
}
// Box to Tabs D&D
dragout.AllowDrop = true;