Hello Mohammed,
yes of course you can do it in the TextChanged event.
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
TextBox2.Text = SumStringChars(TextBox1.Text)
End Sub
Hope that helps,
Alex