Preventing Winform from being maximized?

前端 未结 9 1881
迷失自我
迷失自我 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 18:38

    The form has a property called MaximizeBox - set this to false.

    In regard to your second question, check out this question and it's answers for the best ways to implement keyboard shortcuts in WinForms.

提交回复
热议问题