把FormBorderStyle改成FixedToolWindow

解决方案 »

  1.   

    this.MaximizeBox=false;
    this.MinimizeBox=false;
    this.FormBorderStyle=FormBorderSytle.FixSingle//或其他
    当然直接在Form的属性框中设置这些属性是最简单的。
      

  2.   

    public class Form1():Form
    {
    public Form1()
    {
    this.MaximizeBox = false;
    this.MinimizeBox = false;
    }
    }
      

  3.   

    this.MaximizeBox = false;
    this.MinimizeBox = false;
    在窗口属性中直接设更简单一些。
      

  4.   

    StartPosition 设为CenterParent 居中:
    this.MaximizeBox = false; 取消最大化
    this.MinimizeBox = false; 取消最小化
      

  5.   

    把FormBorderStyle的值改成NOne或者
    把FormBorderStyle改成FixedToolWindow或者设置this.MaximizeBox = false;
    this.MinimizeBox = false;
      

  6.   

    This.StartPosition=StartPosition.CenterParent ;
      

  7.   


    Form property:
    this.MaximizeBox = false;
    this.MinimizeBox = false