Tuesday, September 27, 2011

Set child form at the center of Mdi parent form


Place this code at page_load event 

this.Location = new Point(this.MdiParent.ClientSize.Width / 2 - this.Width / 2, this.MdiParent.ClientSize.Height / 2 - this.Height / 2 - 50);

No comments:

Post a Comment