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

How to put text into different line in textBox

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 different lines in textBox? Any help
will be appreciated.

Thanks in advance,

Fang

By the way, I already set AcceptsReturn to true.
Nov 15 '05 #1
4 4174
\r\n

--
Horatiu Ripa
"Fang" <fa****@aol.com> wrote in message
news:06****************************@phx.gbl...
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 different lines in textBox? Any help
will be appreciated.

Thanks in advance,

Fang

By the way, I already set AcceptsReturn to true.

Nov 15 '05 #2
You need to set Multiline = true; or else it will force everything on one
line

--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Nov 15 '05 #3
Thanks!
-----Original Message-----
\r\n

--
Horatiu Ripa
"Fang" <fa****@aol.com> wrote in message
news:06****************************@phx.gbl...
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 different lines in textBox? Any help will be appreciated.

Thanks in advance,

Fang

By the way, I already set AcceptsReturn to true.

.

Nov 15 '05 #4
Thanks, but I alread set Multiline = true.
-----Original Message-----
You need to set Multiline = true; or else it will force everything on oneline

--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/.

Nov 15 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Sonoman | last post by:
hi all: I am trying to write a program using VB6. This program loops (well, not yet) and reads a constant data stream from a serial port. Then it outputs the "formatted" data to a textBox and...
6
by: Suresh Kumaran | last post by:
Hi All, Does anybody know the sytax in VB.NET to write the contents of a multiline text box to a text file? Appreciate help. Suresh
2
by: Vishal Gupta | last post by:
Hi, I am trying to resolve the following scenario: We have a text box of fixed width that by default should display only 1 line of text without a scrollbar indicator. If there are multiple...
14
by: Joe | last post by:
Hello All: I am trying to dynamically populate a web page with literal content and controls (textboxes and checkboxes (and eventually two buttons - the buttons do not appear in the code yet). I...
3
by: ad | last post by:
I have set a TextBox to MultiLines and set the rows to 10. I assigned the Text of the TextBox some lins of text at desgin time, but only the first line remain in the TextBox. How can I assign...
1
by: shihab | last post by:
I try to use "\n" as line feed to put text into different lines in textBox of C#, but it does not work. The text is still in one line. Does anybody know how to put text into different lines in...
16
by: mj.redfox.mj | last post by:
Can anyone help? I have a textbox which I'm programatically adding by using the following code: txtTest = New TextBox txtTest.ID = "txtLeft" + cntCount.ToString...
7
by: sphinney | last post by:
I have a datasheet style form with textbox (MyTextBox) that has the Text Format property set to "Rich Text". It is bound to a memo field in a table. How do I change the text or highlight color of...
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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.