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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -