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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top