how to get the index of controls(In Event)

  • Thread starter Thread starter http://news.microsoft.com/
  • Start date Start date
H

http://news.microsoft.com/

private PictureBox[] myPicQQ = new PictureBox[8];

....
this.Controls.Add(myPicQQ);
this.myPicQQ.Click += new System.EventHandler(this.picQQ_Click);
....

private void picQQ_Click(object sender, System.EventArgs e)
{
....
How can i get the index of myPicQQ ?
(who click??)
....
}

MSN:p[email protected]
 
Back
Top