c# - I can't implements DoDragDrop Operation on second dialog -
well struggled problem lot. tried simple drag , drop operation, did in main form(the 1 operate main thread) , easy sounds. code this:
protected override void onmousedown(mouseeventargs e) { dragdropeffects effectresult=dodragdrop("hello", dragdropeffects.copy); base.onmousedown(e); }
i'm talking source code. don't care target. so, in main form code works fine , , when push mouse down, hold , move it, see sign of dragging (in case circle line on it).
now in main thread i'm calling other thread , openning new form code showdialog()
the problem start here, when put same code in new form, returns none effectresult variable , nothing cursor.
i guess problem because of new thread, work async, how can fix it?
Comments
Post a Comment