المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : specify area for Drag'n'Drop



C# Programming
07-19-2011, 04:40 PM
Hi experts,

in my application there are two controls DragSource and DragDestination. User can drag objects from DragSource and drop them onto DragDestination.

Now I would like to have some kind of no-drop-zone from DragDestination's border 20 pixels to the inside. Like a frame but within the control, not around it.

DragEnter should fire when the mouse pointer reaches the inner, drag-allowed area.


How can I set the drag area differing from the overall control area?

Ciao,


luker