private void FormLoad(object sender, EventArgs e)
{
this.pictureBox1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pb1MouseDown);
this.pictureBox2.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pb2MouseDown);
}
// i added
MouseEventHandler
for each pictureBox together with a formLoad above this solve my question
no need for the for loop below
for(i=0;i<2;i++)
{
Fun[i];
}
thank you very much