⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 foobar.cs

📁 学生注册管理系统
💻 CS
字号:
using System;
using System.Windows.Forms;
using System.Drawing;

public class FooBar : Form {

  Button pushMeButton;
  Button barButton;

  public FooBar() {

    // Create Button
    pushMeButton = new Button(); 
    pushMeButton.Text = "Foo";
    pushMeButton.Height = 35;
    pushMeButton.Width = 80;
    pushMeButton.Top = 10;
    pushMeButton.Left = 28;

    barButton = new Button(); 
    barButton.Text = "Bar";
    barButton.Height = 35;
    barButton.Width = 80;
    barButton.Top = 60;
    barButton.Left = 28;

    // Add the Button to the Form
    this.Controls.Add(pushMeButton);
    this.Controls.Add(barButton);

    // Size the Form and make it visible
    this.Height = 130;
    this.Width = 145;
    this.StartPosition = FormStartPosition.CenterScreen;
    this.Visible = true;
  }

  static void Main() {
    Application.Run(new FooBar());
  }
}

⌨️ 快捷键说明

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