异常0x80131509在GroupBox c#上启用DragDrop

时间:2018-09-12 13:38:51

标签: c# exception picturebox groupbox

   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注册期间出错

我怎么了?

0 个答案:

没有答案