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;
}
结果:
HResult = 0x80131509 消息=在DragDrop注册期间出错
我怎么了?