출처 : http://stackoverflow.com/questions/31424924/display-form-on-centre-of-screen-for-a-dual-monitor-how-to/31425096#31427588






자식폼의 OnLoad 이벤트에 아래와 같이 구현한다.


 

 

 

 

public partial class GISfrm : Form

{

    public GISfrm()

    {

        InitializeComponent();      

    }

 

    protected override void OnLoad(EventArgs e)

    {

        var area = Screen.AllScreens.Length > 1 ? Screen.AllScreens[1].WorkingArea : Screen.PrimaryScreen.WorkingArea;

        this.Location = new Point((area.Width - this.Width) / 2 + area.X, (area.Height - this.Height) / 2);

        base.OnLoad(e);

    }

 

}

Posted by motolies
,