473,387 Members | 1,766 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,387 software developers and data experts.

How to output text in textbox in different lines

i tried to write this code but it only output the last value

details.text="Model/Make :"
details.text="Serial No :"
details.text="Motor No :"
details.text="Plate No:"

but it only output Plate No:, the output that i want in a text are this

Model/Make :
Serial No :
Motor No :
Plate No :

i hope you could help me with my problem, thanks
Jan 16 '14 #1
3 1470
Rabbit
12,516 Expert Mod 8TB
The problem that is each line is replacing the last, you need to append to the original value.
Jan 16 '14 #2
how will i do it sir? can you please give the code to do that, thank you in advance
Jan 16 '14 #3
Luk3r
300 256MB
I don't know much about vb6, but in vb.net you could do it this way:

Expand|Select|Wrap|Line Numbers
  1. details.text = "Model/Make :" + vbCrLf
  2. details.text = details.text + "Serial No :" + vbCrLf
  3. details.text = details.text + "Motor No :" + vbCrLf
  4. details.text = details.text + "Plate No:"
vbCrLf stands for Visual Basic Carriage Return Line Feed. Basically, like hitting enter on your keyboard while writing in a text document. The reason that we say details.text = details.text + **string** is to include what details.text used to be, and "append" to it, essentially.
Jan 16 '14 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Oleg Ogurok | last post by:
Hi all, On my web page, I have a <OBJECT DATA="mydatafile.ica" ...> which loads Citrix ICA web client. The problem is that I want to generate the mydatafile.ica on the fly (e.g. based on...
4
by: Fang | last post by:
I try to use "\n" as line feed to put text into different lines in textBox of Visual Studio .Net, but it does not work. The text is still in one line. Does anybody know how to put text into...
1
by: noleander | last post by:
Hi. I've got a C++ program written in Visual C++ 2003. The program is trivial, created with the Program-creation wizard: used the .NET "Form" template. The program has a trivial...
4
by: gualtmacchi | last post by:
I'm processing an XML input file getting a plain text file where from M nodes I got N output lines... It's not relevant but the input file is a recordset coming from a database and the output is...
13
by: wocosc | last post by:
I have my gui set up, and I am using a loop to set up output text to be displayed in the gui if the conditions are met. However, what handler do i use to display the text in the gui?
0
by: buzzw | last post by:
Hi I have a wraptext procedure which accepts input text and fits it within given output length . Following is my test script Accept line Prompt 'enter text : ' Accept len prompt 'enter length...
1
by: Alexander Vasilevsky | last post by:
Help to develop wrapper for cmd.exe and to redirect all input and output in TextBox. -- http://www.alvas.net - Audio tools for C# and VB.Net developers
1
by: Matt P | last post by:
Hi there.... I'd like to be able to output text in a BMP or JPG file programatically for use in a wallpaper file.... something like the Sysinternals BGInfo is the effect I am looking for. (Don't...
6
by: noe1818 via AccessMonster.com | last post by:
Just a quick question about lines: Is it possible to connect a text box (e.g. txtbx1 to txtbx2 and txtbx2 to txtbx3) with lines where txtbx1,2,&3 move up or down according to their values? Like...
11
by: viki1967 | last post by:
Problem with output text Hi all. I have this page ASP: <!-- #include virtual="/include/conn_mysql.asp"--> <%
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.