Link to home
Start Free TrialLog in
Avatar of pr_wainwright
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.
ASKER CERTIFIED SOLUTION
Avatar of pivar
pivar
Flag of Sweden image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
try: (sender as Control).Tag,....
Avatar of pr_wainwright
pr_wainwright

ASKER

Thanks for the help.
Paul.