testform3.cs

来自「学生注册管理系统」· CS 代码 · 共 30 行

CS
30
字号
// TestForm3.cs

using System;
using System.Windows.Forms;
using System.Drawing;

public class TestForm3 : Form {

  // (When we add eventually attach components to the Form - labels, buttons,
  // and so forth -- they will be declared here, as FIELDS of the 
  // TestForm4 class.)
 
  // Constructor.
  public TestForm3() {
    // Set the size of the Form using the Height
    // and Width properties.
    this.Height = 200;
    this.Width = 200;

    // Add a title to the Form using the Text property.
    this.Text = "Whee!!!";

    // Center the Form on the desktop.
    this.StartPosition = FormStartPosition.CenterScreen;
    this.Visible = true;
  }

  // Note that there is no Main() method.
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?