Place WinForm On Bottom-Right

前端 未结 5 1708
盖世英雄少女心
盖世英雄少女心 2020-12-10 23:47

How can I place a form at the bottom-right of the screen when it loads using C#?

5条回答
  •  盖世英雄少女心
    2020-12-11 00:16

    This worked for me; i just put this code listed below after my InitializeComponent();

    public FormProgress()
    {
        this.StartPosition = FormStartPosition.Manual;
        this.Location = new Point(Screen.PrimaryScreen.WorkingArea.Width - this.Width, Screen.PrimaryScreen.WorkingArea.Height - this.Height);
    }
    

提交回复
热议问题