Answer the question
In order to leave comments, you need to log in
How to pass data between two textboxes in realtime c#?
Hello.
I have a question. how can you transfer data between two textboxes in real time, that is, you enter text in textbox1, and it is immediately displayed in another textbox2
KeyPress is not suitable, since it only transfers the second press, that is, we write "123" in the other will be " 12"
How to solve this problem?
private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
{
textBox2.Text =textBox1.Text;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question