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

Keep the format of MultiLine TextBox.Text

please help!

How to keep the format of the content of a MultiLine TextBox. For example,
'new line'

I try the code:
------------------------------
TextBox.Text = "TERANET / MPAC - KEY TERMS OF USE \n" & _
"3.1 \n" & _
.......
------------------------------

The display in Browser is:
------------------------------
TERANET / MPAC - KEY TERMS OF USE \n3.1\n ...
------------------------------

Thanks a lot!

Aug 16 '06 #1
3 2469
The browser ignores extra whitespace. If you try to put 3 spaces in a row,
it will only show you one.
Try using <brfor a newline.

"frank" <fr***@discussions.microsoft.comwrote in message
news:60**********************************@microsof t.com...
please help!

How to keep the format of the content of a MultiLine TextBox. For example,
'new line'

I try the code:
------------------------------
TextBox.Text = "TERANET / MPAC - KEY TERMS OF USE \n" & _
"3.1 \n" & _
......
------------------------------

The display in Browser is:
------------------------------
TERANET / MPAC - KEY TERMS OF USE \n3.1\n ...
------------------------------

Thanks a lot!

Aug 16 '06 #2
Oh hold on, you are talking about a textbox here. Sorry, I thought you just
had text right in the HTML.

Try using System.Environment.Newline instead of '\n'.

"frank" <fr***@discussions.microsoft.comwrote in message
news:60**********************************@microsof t.com...
please help!

How to keep the format of the content of a MultiLine TextBox. For example,
'new line'

I try the code:
------------------------------
TextBox.Text = "TERANET / MPAC - KEY TERMS OF USE \n" & _
"3.1 \n" & _
......
------------------------------

The display in Browser is:
------------------------------
TERANET / MPAC - KEY TERMS OF USE \n3.1\n ...
------------------------------

Thanks a lot!

Aug 16 '06 #3
I really appreciate it! It works very well.

Frank

"Marina Levit [MVP]" wrote:
Oh hold on, you are talking about a textbox here. Sorry, I thought you just
had text right in the HTML.

Try using System.Environment.Newline instead of '\n'.

"frank" <fr***@discussions.microsoft.comwrote in message
news:60**********************************@microsof t.com...
please help!

How to keep the format of the content of a MultiLine TextBox. For example,
'new line'

I try the code:
------------------------------
TextBox.Text = "TERANET / MPAC - KEY TERMS OF USE \n" & _
"3.1 \n" & _
......
------------------------------

The display in Browser is:
------------------------------
TERANET / MPAC - KEY TERMS OF USE \n3.1\n ...
------------------------------

Thanks a lot!


Aug 16 '06 #4

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

Similar topics

4
by: Michael C | last post by:
Hi all, I'm trying to add lines to a multiline textbox. Here's what I'd like to end up with in the textbox (as an example): Line1 Line2 Line3 I've tried a couple of methods but nothing...
7
by: Joel Finkel | last post by:
Folks, I have a form that has several TextBoxes, some of which have the TextMode set to MultiLine. Each is pre-loaded with data from a database. The user is allowed to modify each entry. The...
4
by: hardcoded | last post by:
I have a textbox with TextMode set to MultiLine. I also have the MaxLength set to 255. This maxlength value seems to get ignored as the user can enter unlimited characters. Does the multiline...
2
by: Enzo Marinelli | last post by:
Hello everyone I have a MultiLine TextBox, as follows <asp:TextBo Id="StreetAddress Rows="4 Runat="Server TextMode="MultiLine Width="100%"/
1
by: Flack | last post by:
Hey guys, I have two questions regarding the vertical srollbar of a multiline textbox. 1. I have an "Ok" button that is initially disabled. I want it to be enabled when the user scrolls the...
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
markmcgookin
by: markmcgookin | last post by:
Hi Folks, I have a strange issue here, I have a form with a text box that is recieving a decimal that can also be a minus. using this this.textBoxEWTAIn.Text = EWTAIn.ToString("#.##");...
7
by: Anil Gupte | last post by:
I have read a lot about getting lines from a multiline textbox in VB.Net. However, I cannot for the life of me figure out how to write to a multiline textbox. Basically, I have created an array of...
2
by: Nathan Sokalski | last post by:
I have a multiline TextBox that I want to display the text used to create a control in an apsx file. I want each of these to be on a separate line in the TextBox. The only way I know of to place...
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
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
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.