473,414 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

textbox help VB2005

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
5 1625
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

"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
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
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

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Matt | last post by:
I have a number of TextBox controls bound to date fields in my application, and have come across a disconcerting issue: When you are entering data into the bound field, if you enter any string that...
3
by: Dave | last post by:
Hey all, Ok, here's another of my fun questions. I want to rewrite the textbox control in VB.NET. I need to implement superscript and subscript within the box. Don't ask why, but I can't use...
21
by: Darin | last post by:
I have a form w/ a textbox and Cancel button on it. I have a routine to handle textbox.validating, and I have the form setup so the Cancel button is the Cancel button. WHen the user clicks on...
0
by: ProteusGak | last post by:
:confused: VB2005: I have a datagridview and a textbox. When a user clicks in the datagridview, I would like some or part of the data in the row to show up in the textbox. Any clues? Thank you, PG
1
by: Ian Tedridge | last post by:
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...
6
by: Dhananjay | last post by:
hi everyone i have a problem how to save the textbox contents to sql server database. i am getting this contents after conversion from web browser into textbox(multiline) I want to store all the...
3
by: =?Utf-8?B?UmljaA==?= | last post by:
Hello, I selected BorderStyle = Fixed3D for a textbox on a form in VB2005, but the textbox looks flat. In VB2003 the textbox has the same borderStyle = Fixed3D and has a 3D appearance. Is it...
2
by: Mike | last post by:
I am trying to write a little program for my own use using VB2005 express edition. I have a list of peoples names in a file that I read into an array of strings. I am using a multiline textbox to...
4
by: viv | last post by:
how do you trap keyboard codes for text box in VB2005 ? I'm looking for a code snippet to only allow numeric input in a text box (same as Key event in VB6, then use Keyascii to decide action) ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.