Home » FAQ » WinForms » Tips » I get a message ’DragDrop registration’ failed. Why
Try placing the attribute [STA Thread] on your Main method. OLE D&D requires single threaded apartments.
[STAThread] static void Main() { Application.Run(new Form1()); }
Platform BlazorASP.NETWinFormsWPF.NET MAUI
Question *
Answer (Optional)
Email (Optional)
Email address is only for further clarification on your FAQ request. It will not be used for any other purpose.
Please leave this field empty.
Share with