Click here to Skip to main content
16,011,947 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have an application where I will draw 8 polygons (inside a canvas) on each of button clicks at the runtime. But I am unable to use Sender to obtain the information about which polygon the user has clicked at so that I can perform some operation on it. Please help??

The sender object can only be casted to a contol but not to other things like Polygon in my case. So I am unable to proceed further on this??
Posted
Updated 13-Oct-10 21:41pm
v2

1 solution

Try to check if e.OriginalSource in the click event gives you the polygon.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900