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

Related FAQs

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

Please submit your question and answer.