实现效果:
知识运用:
将窗体的FormBorderStyle属性设置为FormBorderStyle.FixedDialog枚举值实现
实现代码:
private void button1_Click(object sender, EventArgs e) { this.FormBorderStyle = FormBorderStyle.FixedDialog; }