form2.cs
来自「没事时做的一个简单的画图小项目」· CS 代码 · 共 40 行
CS
40 行
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace hutu
{
public partial class Form2 : Form
{
public int wo;
public int ho;
public Form2()
{
InitializeComponent();
}
private void Form2_Load(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
wo = Int32.Parse(this.textBox1.Text);
ho = Int32.Parse(this.textBox2.Text);
this.DialogResult = DialogResult.OK;
}
private void button2_Click(object sender, EventArgs e)
{
this.Visible = false;
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?