Disabling Minimize & Maximize On WinForm?

前端 未结 7 1790
逝去的感伤
逝去的感伤 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 10:02

    public Form1()
    {
    InitializeComponent();
    //this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
    this.MaximizeBox = false;
    this.MinimizeBox = false;
    }
    

提交回复
热议问题