C#应用编程小例子-02-窗体最大化和最小化窗体大小

 

 

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

namespace Ex01
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            this.MaximumSize = new Size(400,400);
            this.MinimumSize = new Size(300,300);
        }
    }
}

 

posted @ 2019-01-08 10:41  landv  阅读(220)  评论(0编辑  收藏  举报