using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace 窗口大小
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            this.MaximumSize = new Size(400, 300); //窗口最大值 400*300
            this.MinimumSize = new Size(300, 300); //窗口最大值 300*300
        }
    }
}


支持最大 400*300 

支持最小300*300

代码及效果:


http://yunpan.cn/csJAf7UxEN2Di  提取码 c450