pr_wainwright
asked on
C# Determine Sender control in Drag Drop operation
Hi,
How can I determine the name or tag of the control (sender) that initiated (mouse down event) a Drag Drop operation in the DragEnter event of the recipient?
e.g. If an image named 'Image1' is dragged onto a Panel named 'Panel1' in Panel1's DragEnter event how can I get the name (or tag) of Image1?
Thanks
Paul.
How can I determine the name or tag of the control (sender) that initiated (mouse down event) a Drag Drop operation in the DragEnter event of the recipient?
e.g. If an image named 'Image1' is dragged onto a Panel named 'Panel1' in Panel1's DragEnter event how can I get the name (or tag) of Image1?
Thanks
Paul.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
try: (sender as Control).Tag,....
ASKER
Thanks for the help.
Paul.
Paul.