![]() |
Making multiple textboxes load into one final textbox? - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17) +---- Thread: Making multiple textboxes load into one final textbox? (/showthread.php?tid=2354) |
Making multiple textboxes load into one final textbox? - Nean - 07-11-2008 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. Re: Making multiple textboxes load into one final textbox? - Rian - 07-11-2008 txtLastTextBox.Text = txtBox1.Text & " " & txtBox2.Text & " " & txtBox3.Text Re: Making multiple textboxes load into one final textbox? - Nean - 07-11-2008 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. ![]() Re: Making multiple textboxes load into one final textbox? - Rian - 07-11-2008 txtLastTextBox.Text = txtBox1.Text & vbNewLine & txtBox2.Text & vbNewLine & txtBox3.Text Re: Making multiple textboxes load into one final textbox? - Nean - 07-11-2008 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. :\ Re: Making multiple textboxes load into one final textbox? - Nean - 07-11-2008 Hahahahaha. Wow. I'm stupid. It didn't have multi-line turned on. ![]() |