namespace _3.Label和TextBox控件使用 { public partial class Form1 : Form { public Form1() { InitializeComponent(); }

    private void textBox1_TextChanged(object sender, EventArgs e)
    {
        //![](https://s1.51cto.com/images/blog/201905/21/2e5c235ca4d4a24be7c93c0b51f608e0.jpg?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_30,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=)给TextBox注册一个事件,当文本框改变时赋值给Label
       label1.Text= textBox1.Text;
    }
}

}