1
Answer

Multiple instance of User-Control in a Windows Form

Ask a question
sasikumar

sasikumar

12y
1.9k
1
Hi,

I've a UserControl which contains a Button click event in it. Then I've a form Form1.cs which contains multiple instances of the UserControl - uc1, uc2, uc3, etc.,

On the Button Click event of the UserControl, How do I identify in the form (Form1.cs), that from which instance(uc1\uc2\uc3) of the usercontrol, was the Button Click event triggered ?

Any suggestions?

Thanks,
SK.

Answers (1)