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());
}
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