DragDrop registration did not succeed

前端 未结 9 1806
时光取名叫无心
时光取名叫无心 2021-02-07 08:14

System.InvalidOperationException: DragDrop registration did not succeed. ---> System.Threading.ThreadStateException:

What does this except

9条回答
  •  清歌不尽
    2021-02-07 08:54

    I solved this error by using below code...I were using Background Worker and trying to access UI while background worker..that is why getting error - DragDrop registration did not succeed. We cannot access UI from the code running in background worker or in thread.

    BeginInvoke((MethodInvoker)delegate
    {
    //write your code here...
    
    });
    

    Thanks Happy Coding... :

提交回复
热议问题