c# - Drag and Drop with a custom User Control -
i have make program has 3 forms , each form contains 2 custom user controls.
i have make user controls switch places (one another).
i'm using drag & drop event, mousedown event catch first user control, though, don't know how catch second control, mouse being dropped on.
basically, iv'e created (in class) temp variable custom eventargs (derives eventargs), custom eventargs class contains 2 variables (usercontrol1 , usercontrol2) , in mousedown event iv'e initialized usercontrol1 sender object.
so basically, question is- how intiazlize usercontrol2 variable usercontrol mouse being dropped on.
note: have 6 controls - 3 forms- it's dynamic!! means, may want exchange control's places between forms- have save 2 controls want exchange between!.
thanks!
Comments
Post a Comment