Is the intention to add all the digits of the number whatever its size? So 23456 would be 16, for example? In that case you need to split the text into single digits.

vb.net Code:
  1. Dim i As Integer = 0
  2.         For Each digit In TextBox1.Text 'takes advantage of nature of string as char array
  3.             i += Val(digit)
  4.         Next
  5.         TextBox2.Text = i.ToString