Maximized screen ignores taskbar

前端 未结 8 1734
刺人心
刺人心 2020-12-20 16:53

I have a form I set to Maximized, but for some reason it\'s ignoring the taskbar and maximizing to the entire screen. Is that typical? Is there a workaround?

8条回答
  •  甜味超标
    2020-12-20 17:18

    What I did is the following:

    • Set MaximizeBox property to true
    • Set WindowState to Maximized
    • In constructor of the form, wrote the following:

      this.Bounds = Screen.PrimaryScreen.WorkingArea;

提交回复
热议问题