1. 程式人生 > >禁止改變窗體大小

禁止改變窗體大小

實現效果:

  

知識運用:

  將窗體的FormBorderStyle屬性設定為FormBorderStyle.FixedDialog列舉值實現

實現程式碼:

  

        private void button1_Click(object sender, EventArgs e)
        {
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
        }