November 1st, 2009, 09:53 AM
multiple text boxes and combo box selections output to txt file..
I'm using Vb .net 2008
I could use some advice/examples to acheive the following:
I have 1 form, 4 text boxes, (textbox1 ,2, 3, 4)
Textbox1 and Text box 3 and single line text boxes..
Textbox2 is multiline.. (a description field which can be as long or short as the user desires..)
Textbox 4 is a large multi-line textbox that will contain the output of Textbox1,2,3.
I need to find out how to output the contents typed into Textbox1,2 and 3 into Textbox4 while maintaining formatting..
For example, contents of Textbox1 should always be the first text displayed in textbox4,
immediately under that should be the contents of Textbox2, and under that, Textbox3
I want to ensure that the text is displayed in that order even if the user enters information into Textbox3 first..
and still displayed in the proper order if Textbox2 has 1 line of text or 20 lines of text.
How could I do this?
How can I make the text from one box always be inserted before or After text from another specific textbox when its displayed in the destination Textbox.. (think of Textbox4 like a "preview window" of sorts.. which will later be outputted to an actual txt file.
November 1st, 2009, 11:11 AM
Re: multiple text boxes and combo box selections output to txt file..
You need to tell it WHEN to combine the fields, but you can use this:
or even add Newline char's between them.
Text4.Text = Text1.Text & Text2.Text & Text3.Text
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.