📜  c# 设置窗口大小 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:55.185000             🧑  作者: Mango

代码示例1
button1_Click(object sender, EventArgs e)
{
    // This will change the Form's Width and Height, respectively.
    this.Size = new Size(420, 200);
}