By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,344 Members | 1,139 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,344 IT Pros & Developers. It's quick & easy.

textbox help VB2005

P: n/a
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
Nov 18 '06 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Add an Environment.NewLine (this might not be the correct spelling but
close - no dot.net access on this PC) to each line that you add to the
multiline textbox.

LS

"Ian Tedridge" <ia*********@btinternet.comwrote in message
news:#V**************@TK2MSFTNGP03.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
Nov 18 '06 #2

P: n/a

"Ian Tedridge" <ia*********@btinternet.comwrote in message
news:%2****************@TK2MSFTNGP03.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
Or,
Dim value As String

value = Constants.vbCrLf

TextBox4.Text = TextBox1.Text & value & TextBox2.Text & value &
TextBox3.Text
Nov 18 '06 #3

P: n/a
Ian,

Or nicer, use a listbox

Cor

"Ian Tedridge" <ia*********@btinternet.comschreef in bericht
news:%2****************@TK2MSFTNGP03.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

Nov 19 '06 #4

P: n/a
Ian,

This is a 24hour 7 days up newsgroup. That despite of most forums, however
it has not a 10 minute reponse rate for every message, therefore please wait
a while.

If you are using Outlook express, connect than direct to one of the
microsoft newsservers as by instance news.microsoft.com and not to the
newsserver of your provider, that will speed up your wait time.

Cor

"Ian Tedridge" <ia*********@btinternet.comschreef in bericht
news:%2****************@TK2MSFTNGP03.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

Nov 19 '06 #5

P: n/a

Or,
Dim value As String

value = Constants.vbCrLf

TextBox4.Text = TextBox1.Text & value & TextBox2.Text & value &
TextBox3.Text
Why do you assign the contstant to a string ? this will degrade the
performance of the app as this means that on every usage a scan takes place
in the string table
you would better use the contstant as is

By the way i believe that environment.newline is the better way in terms
of portability
regards

Michel Posseth [MCP]

"pvdg42" <pv****@newsgroups.nospamschreef in bericht
news:%2****************@TK2MSFTNGP02.phx.gbl...
>
"Ian Tedridge" <ia*********@btinternet.comwrote in message
news:%2****************@TK2MSFTNGP03.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
Or,
Dim value As String

value = Constants.vbCrLf

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


Nov 19 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.