GroupBox.AllowDrop = true;
.
private void GroupBox_DragEnter(object sender, DragEventArgs e) {
e.Effect = DragDropEffects.Move;
}
.
private void GroupBox_DragDrop(object sender, DragEventArgs e) {
Control c = e.Data.GetData(e.Data.GetFormats()[0]) as Control;
}
Result:
HResult = 0x80131509 Message = Error during DragDrop registration
What did i wrong?