Disabling Minimize & Maximize On WinForm?

前端 未结 7 1774
逝去的感伤
逝去的感伤 2020-12-02 09:43

WinForms have those three boxes in the upper right hand corner that minimize, maximize, and close the form. What I want to be able to do is to remove the minimize and maxim

7条回答
  •  温柔的废话
    2020-12-02 09:57

    Right Click the form you want to hide them on, choose Controls -> Properties.

    In Properties, set

    • Control Box -> False
    • Minimize Box -> False
    • Maximize Box -> False

    You'll do this in the designer.

提交回复
热议问题