public Fille(FMere maMere, int numero) { InitializeComponent(); this.FormClosing += new FormClosingEventHandler(Fille_FormClosing); this.Text = "Fille n°" + numero; this.monNon = this.Text; this.maMere = maMere; this.btnMaMere.Click += new EventHandler(btnMaMere_Click); this.Load += new EventHandler(Fille_Load); this.btnChanger.Click += new EventHandler(btnChanger_Click); this.tbChangeNom.TextChanged += new EventHandler(btnChanger_Click); }
private void btnMaMere_Click(object sender, EventArgs e) { FMere maman = new FMere(); MessageBox.Show("Ma Mere est : " + maman.NomMere); }