Live Chat Icon For mobile
Live Chat Icon

I get a message ’DragDrop registration’ failed. Why

Platform: WinForms| Category: Tips

Try placing the attribute [STA Thread] on your Main method. OLE D&D requires single threaded apartments.

static void Main() 
	Application.Run(new Form1());

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.