Monday, 19 December 2011

Copy TextBox Content To Another while Typing


For this, I am using Two Textboxes named txtpermanentadd and txtpresentadd. Screenshot given below.
To make textbox for typing  address, change multiline property of textbox to True.
Write the below code in to the TextChanged event of txtpermanantadd.

Private Sub txtPermanantadd_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtPermanantadd.TextChanged
        txtPresentadd.Text = txtPermanantadd.Text
    End Sub

No comments:

Post a Comment