Exception 0x80131509 Enable DragDrop on GroupBox c

2019-08-24 07:31发布

   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?

0条回答
登录 后发表回答