Tu peux faire comme ceci :
Ce code doit être dans le code de ta fenêtre mère.. et supposons que ta fenêtre fille s'apelle Form2...
Il faut egalement que tu mette l'accesseur de txtTexte2 public .. ( Le texte de ta fenêtre fille ) sinon ca marchera pas ..
private void button1_Click(object sender, EventArgs e)
{
Form2 f = new Form2();
f.txtTexte2.TextChanged += new EventHandler(txtTexte2_TextChanged);
f.ShowDialog();
}
void txtTexte2_TextChanged(object sender, EventArgs e)
{
txtTexte1.Text = ((TextBox)sender).Text;
}
De mon coté ca marche ... n'hésite pas s'il y a quelque chose ;)
________________________________________________________________________
Hardware is what we play with until it breaks, Software is what we play with until it works !
