Preventing Winform from being maximized?

前端 未结 9 1911
迷失自我
迷失自我 2020-12-06 18:02

I want to prevent my desktop application from being maximized. It should not become maximized by any means - by double clicking on title bar, or by clicking Windows + Up arr

9条回答
  •  情歌与酒
    2020-12-06 19:03

    Setting the MaximumSize equal to the Size (or some size) at least stops the windows from going full-screen. It still snaps to the top left corner but it's still a window at least and looks right - like it's Windows being stupid instead of your program.

提交回复
热议问题