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

مشاهدة النسخة كاملة : Finding which control triggered an event



C# Programming
03-22-2010, 06:01 AM
Hi all,

This is more of a winforms question. Here's the problem.. I have a FlowLayoutPanel which is populated by several PictureBoxes. Say I click on one of the picture boxes, is there a way I could find out which picture box out of the collection was clicked?

Have already considered assigning an ID for each picturebox, but this just seems crude. Is there a sleek way of doing this?

Thanks.