Click here to Skip to main content
15,868,306 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I have 2 textboxes. While entering the values into textbox1, it should also be entered in textbox2. Can anyone help me?
Posted
Updated 9-Dec-10 18:28pm
v2

1 solution

Hi,

that's easy, just subscribe the TextChange event of your first textbox and then use this code:

C#
private void textBox1_TextChanged(object sender, EventArgs e)
{
  textBox2.Text = textBox1.Text;
}
 
Share this answer
 
Comments
Tarun.K.S 10-Dec-10 0:33am    
Good answer!
baluILU 10-Dec-10 0:42am    
Thanks Mr.JF2015

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900