private void pPositionSouris_MouseDown(object sender, MouseEventArgs e) { switch (e.Button) { case MouseButtons.Left: N_Gauche++; tbGauche.Text = N_Gauche.ToString(); break; case MouseButtons.Right: N_Droit++; tbDroite.Text = N_Droit.ToString(); break; } }
private void Pnl_Pos_Souris_MouseDown(object sender, MouseEventArgs e) { switch (e.Button) { case MouseButtons.Left: //si appui btn gauche N_Gauche++; TB_Gauche.Text = N_Gauche.ToString(); break; case MouseButtons.Right: //si appui btn droit N_Droit++; TB_Droite.Text = N_Droit.ToString(); break; } }