2
Reply

Index of a Button in an array

Majid Kamali

Majid Kamali

Sep 2 2010 1:13 PM
2.2k
Hi.
I have an array of buttons that I fire MouseClick event for them in Form1_Load method.
In Button_MouseClick method, How Can I understand What is the index of button that is pressed?(pressed button is one of aforementioned array members)
Can I change signature of Button_MouseClick event and add an int parameter to end of it as index?
Thanks :-)

Answers (2)