【发布时间】:2013-09-28 18:54:28
【问题描述】:
我有带有 TextBox 和 Label 的 Windows 窗体应用程序,我想在文本框中输入一些内容,然后按 Enter 来显示我在 Label 中输入的内容。
按钮示例:
private void button1_Click(object sender, EventArgs e)
{
this.Label1.Text = this.TextBox1.Text;
}
我需要做同样的事情,但按 Enter 而不是按钮。
【问题讨论】: