Maximized screen ignores taskbar

前端 未结 8 1729
刺人心
刺人心 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:15

    One thing I left out of the description--I'd turned off the maximize button. When I tested turning that property back on, the task bar showed up again. Apparently it assumes if you don't want a maximize button you are creating a kiosk-style application where you don't want your users to see anything but the application screen. Not exactly what I'd expect, but works I guess.

    0 讨论(0)
  • 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;

    0 讨论(0)
提交回复
热议问题