form1.cs
来自「一些初学者可以看的程序,本人因才疏学浅,刚学C#,对C#还不了解,不过有一定的C」· CS 代码 · 共 35 行
CS
35 行
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace six
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
textBox1.Text = "你单击的是左边的按钮";
button1.Text = "显示";
button2.Text = "单击我";
textBox1.BackColor = Color.Green;
}
private void button2_Click(object sender, EventArgs e)
{
textBox1.Text = "你单击的是右边的按钮";
button1.Text = "单击我";
button2.Text = "显示";
textBox1.BackColor = Color.Yellow;
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?