how do i change the text of a text box more than once during runtime cumulativly? for example:
2 random functions generate a sentence to put into one text box. How do I get both to show, one after the other?
Printable View
how do i change the text of a text box more than once during runtime cumulativly? for example:
2 random functions generate a sentence to put into one text box. How do I get both to show, one after the other?
Do you mean this:
The & character just appends one string to another.Code:Text1.Text = "Sentence 1"
'Blah blah blah
Text1.Text = Text1.Text & " Sentence 2"
'Text1.Text now equals "Sentence 1 Sentence 2"
or you could make the textbox multiline and do the following:
text1.text = "whatever"
text1.text = text1.text & vbcrlf & "man"
that will give you two lines in the textbox
*vbcrlf is a command to start in a new line ...