Home All Groups Group Topic Archive Search About

vb2005 express textbox control

Author
18 Nov 2006 7:49 PM
Ian Tedridge
If I have 3 textboxes on a form plus 1 multiline textbox.

How can I add the text from textbox 1 to 3 to the multiline textbox ?

I can add the 3 textbox contents to one line of the multiline textbox, but
need each text line to appear on seperate lines.

this is driving me crazy, please help

Author
19 Nov 2006 12:15 AM
pvdg42
"Ian Tedridge" <iantedri***@btinternet.com> wrote in message
news:%23cdCtq0CHHA.652@TK2MSFTNGP02.phx.gbl...
> If I have 3 textboxes on a form plus 1 multiline textbox.
>
> How can I add the text from textbox 1 to 3 to the multiline textbox ?
>
> I can add the 3 textbox contents to one line of the multiline textbox, but
> need each text line to appear on seperate lines.
>
> this is driving me crazy, please help
>
Here's one way:

Dim value As String

value = Constants.vbCrLf

TextBox4.Text = TextBox1.Text & value & TextBox2.Text & value &
TextBox3.Text