Hi,
You have to add the handles of the TextChanged event in Form_Load, like this:
private void Form1_Load(object sender, EventArgs e)
{
textBox1.TextChanged += new EventHandler(UpdateTextBox
textBox2.TextChanged += new EventHandler(UpdateTextBox
}
private void UpdateTextBoxes_Textchange
{
textBox3.Text = ((TextBox)sender).Text;
}
Main Topics
Browse All Topics





by: CraigWagnerPosted on 2009-07-08 at 08:16:44ID: 24804682
1. Create your event handler (which it looks like you've already done).
2. In the form designer, select one of the TextBox controls
3. Bring up the properties for Textbox1.
4. Click on the lightning bolt icon in the Property window to show the list of events.
5. In the TextChanged event, click the drop down arrow.
6. Select the existing event handler
7. Repeat steps 2 - 6 for the other TextBox controls