DragDrop stop working
DragDrop\DragEnter stop working after add ComWrappers.RegisterForMarshalling(WinFormsComInterop.WinFormsComWrappers.Instance) (Framework.Net 5.0-6.0\AOT)
Notice: Yes, It fix com wrapper error in AOT, but drag and drop events on form, controls stop work (except mouse click, etc)
Maybe any tips?
Thx
Can you try net7.0?
There a lot of work done to reduce need for this library in WinForms 7.0 so maybe that would solve your issue
net7.0 - nope
I already solved it Implemented drag and drop via IMessageFilter.PreFilterMessage+ pinvoke DragAcceptFile, DragQueryFile, DragFinish (shell32.dll) Now it work with any controls after AOT compiler (also with controls that not support drag drop)
(*) If someone need this i can upload this implementation
Thx, for answer
I suspect that you should just add required interface to here for example https://github.com/kant2002/WinFormsComInterop/blob/b1634b22bbe99309ef6ee93703fc5ad930bbb1e6/WinFormsComInterop/IExternalObject.cs#L20 or maybe even create separate class
Thx, i'll ty it
Can you upload the implementation? I'm doing personal project and would like to use it.