标签:c#
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
C#-MaximumSIze,MinimumSize,窗体默认大小范围---ShinePans
标签:c#
原文地址:http://blog.csdn.net/shinepan/article/details/40298773