努力做视觉的博客Winform窗体移动、放大、缩小: class FormProperties { private Form form; public FormProperties(Form Form) { form = Form; } #region 窗体放大、缩小、移动 [DllImport("user32.dll")] public ...
Sumzeek丶的博客1、首先在 public Form1()获取当前窗体的宽和高 public Form1() { InitializeComponent(); x = this.Width; y = this.Height; setTag(this); } 2、然后在主体程序中插入如下代码 #region 控件大小随...