Yes but the window (form) that is contained in the second must have
"TopLevel=false" :
private void Form1_Load(object sender, System.EventArgs e)
{
Form frm2 = new Form2();
frm2.TopLevel = false;
this.Controls.Add(frm2);
this.Controls[0].Dock = DockStyle.Left;
frm2.Show();
}
or you can use MDI forms...
If the Forms does not contain one another (or are not contained both in a
parent container) there's no other way to synchronize their position than to
do it manually.
--
Horatiu Ripa
"Mr.Tickle" <Mr******@mrmen.com> wrote in message
news:#5**************@TK2MSFTNGP09.phx.gbl...
Is there a better way to synchronise 2 windows positions appart from
listening for WINDOW A Location Changed event and sendint the new location
to WINDOW B?
Could this be done with docking?