Un exemple..
public partial class Form1 : Form
{
public Form1( )
{
InitializeComponent( );
TextBox tb = new TextBox( );
tb.Multiline = true;
tb.Dock = DockStyle.Fill;
this.Text = "Form1";
this.Controls.Add( tb );
this.Show( );
Button b = new Button( );
b.Text = "Click";
b.Click += delegate
{
tb.Text = DateTime.Now.ToLongTimeString( );
};
Form form2 = new Form( );
form2.Text = "Form2";
form2.Controls.Add( b );
form2.Show( this ); // Retrouve form1 dans la propriété 'Owner' de form2.
}
}