Window position Syncronising

  • Thread starter Thread starter Mr.Tickle
  • Start date Start date
M

Mr.Tickle

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?
 
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.
 
Back
Top