Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Making multiple textboxes load into one final textbox?
#1
Is this possible? So for example, in textbox 1 I would have "this " and in textbox 2 I'd have "is " and in three I'd have "an example" and then I click a button, and they all load in the last text box to say

"This is an example", I'm trying to make a generator for RP chars (Don't judge me. This is just for the hell of it), and from the last textbox, it inputs the text into a textfile. I already have the textfile part figured out, I just need to know how to make all the code from the textboxes add themselves to the last textbox. Any help would be appreciated.
Reply
#2
txtLastTextBox.Text = txtBox1.Text & " " & txtBox2.Text & " " & txtBox3.Text
Reply
#3
Sonire Wrote:txtLastTextBox.Text = txtBox1.Text & " " & txtBox2.Text & " " & txtBox3.Text

Awesome, it works. Is there any way to make it so that it's formatted like this automatically though?
Name
Race
Age

Etc, Etc. As it is now it does: Name: Race: Age:, all on one line. Thanks for the help, I deeply appreciate it. Smile
Reply
#4
txtLastTextBox.Text = txtBox1.Text & vbNewLine & txtBox2.Text & vbNewLine & txtBox3.Text
Reply
#5
Sonire Wrote:txtLastTextBox.Text = txtBox1.Text & vbNewLine & txtBox2.Text & vbNewLine & txtBox3.Text

Hmm, that didn't work. It just adds two small black squares between each one. :\
Reply
#6
Hahahahaha. Wow. I'm stupid. It didn't have multi-line turned on. Smile
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)