Maximize form on both screens (dual screen monitor)

前端 未结 6 1209
春和景丽
春和景丽 2021-01-01 07:01

Iam looking for some hint or solution regarding following problem.

I have a .NET 2.0 WinForm dialog which operates in Dual Screen environment. The Working area is se

6条回答
  •  南笙
    南笙 (楼主)
    2021-01-01 07:18

    Only solution I know is using the bounds in combination with overriding the Resize event. In the handler you can check the WindowState property to see if the form is Maximized or Minimized. If maximized, resize the window again with all screen bounds together.

    I do see a problem with what you want.
    What if the second screen is smaller then the first (visa versa)...
    What if the second screen is located diagonal (e.g. top left) of the first screen (visa versa)...
    There will be parts that won't be visible!

提交回复
热议问题