MTAThread and AllowDrop?
C#
1
Posts
1
Posters
0
Views
1
Watching
-
Hi I use a COM object which needs that I set my Threading-Model to Multi-Threaded-Apartment (MTAThread). If I do not set it to MTAThread I get System.InteropServices.COMException when I call COM-Functions. If I set it to MTAThread I get a 'System.InvalidOperationException:DragDrop registration failed' exception when opening a Windows-Form element with AllowDrop set to true. Is it not possible to enable DragDrop in a Multi-Threaded-Apartment? Thanks Martin