If you just want to add the name onto the end of the textbox then it is as simple as
NameSelection.Text &= Name
Note the "&" in front of the "=". See
&= Operator - Visual Basic | Microsoft Docs[
^]
That will give the results
Alex
then
AlexThomas
To make it a little nicer try setting the
Multiline Property[
^] of your text box, and the scrollbars properties (same link) and use
NameSelection.Text &= Environment.NewLine & Name
which will give results
Alex
Thomas
Note the extra line which you will need to
trim [
^] out
Note that strings are
immutable, which means you cannot change them. You actually get a
new string created each time. That can be quite wasteful if you are doing this a lot. In that instance have a look at the
StringBuilder Class (System.Text) | Microsoft Docs[
^] to build the new string(s) - probably not needed in this case, just letting you know.