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.

[STAThread]
static void Main() 
{
	Application.Run(new Form1());
}

Share with

Share on twitter
Share on facebook
Share on linkedin

Related FAQs

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

Please submit your question and answer.