DragDrop registration did not succeed

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

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

What does this except

9条回答
  •  隐瞒了意图╮
    2021-02-07 08:49

    Add the STAThreadAttribute attribute on the Main method. This attribute is required if your program access OLE related functions, like Clipboard class does.

    [STAThread]

    static void Main(string[] args)

    {

    }

提交回复
热议问题