Hello, can someone please help me.

Ive got 2 textboxes. I want the text i typed in one textbox and show it in another. Now ive used the code textbox2.text = textbox1.text, but everytime i add text and then add more later it deletes all the text i typed earlier.

Can someone help me with any specific coding or components that i need so everytime i type in new text it places it in the other textbox but underneath the text i typed earlier.

Thanks

in which event are u writing this code???
below code works...is this what u want....type in textbox3 and get the same thing in textbox4

Private Sub TextBox3_TextChanged(sender As System.Object, e As System.EventArgs) Handles TextBox3.TextChanged
          TextBox4.Text = TextBox3.Text
     End Sub

Edited 4 Years Ago by poojavb

Yeah that codes does work, it shows the text that i want, however when i do that, then add more text later on, it deletes what i put in that textbox earlier and replaces it with the text i added later if that makes sense

You could try

Private Sub TextBox1_KeyPress(sender As System.Object, e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
    TextBox2.AppendText(e.KeyChar)
End Sub

This would also allow you to filter out certain keys like backspace.

This question has already been answered. Start a new discussion instead.