The first thing you need to do is
convert the .Text of the TextBoxes to integer[
^].
To do this you might be tempted to use
ConvertToInt32[
^] but consider the fact that these are TextBoxes and you shouldn't rely on the User actually entering a proper number - they might type in "one" instead of 1 for example. So I suggest you use
TryParse[
^]
Once you have done that you can add the two numbers together then use the
ToString()[
^] method to put the result into TextBox3.
Now you need to concatenate the two strings from
TextBox1.Text
and
TextBox2.Text
- you can do this in a variety of ways ... e.g. the
String.Concat[
^] method, although I prefer the
String.Format[
^] method.
You then need to add 1 to the value you calculated from TextBox1 and TextBox2, convert it to a string using the
ToString()
method mentioned above, and concatenate that value onto the concatenated string you just produced.
Insert that value into TextBox4 (note you do not need to do
ToString()
again)
Give it a go ... write the code and test it. If you get stuck then come back showing the code that you have tried
Edit - I've just noticed that the presentation of your data is incorrect. It should be (based on your description of the problem):
textbox1 textbox2 textbox3 textbox4
1 12 13 11214
4 10 14 41015
Edit 2 - thanks to @0x01AA I see I've made this a little too complicated - however, the conversion information and concatenation information still stands