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

Wrapping text in a textbox

I have a textbox for entries of rather long paragraphs of text on
an .aspx form developed in VB.net on Visual Web Developer Express.
What I can' figure out is how to get the text to wrap as the user is
typing once they get to the margins, just like happens automatically
when I type in this box. I looked at all the settings under properties
and couldn't find what I needed. Is there any VB code or HTML that I
can specify tis property? Thanks!

Jul 12 '07 #1
3 1563
Replace the carriage returns with '<br />' when you need to write the
text to the page.

On Jul 12, 3:42 pm, slinky <campbellbrian2...@yahoo.comwrote:
I have a textbox for entries of rather long paragraphs of text on
an .aspx form developed in VB.net on Visual Web Developer Express.
What I can' figure out is how to get the text to wrap as the user is
typing once they get to the margins, just like happens automatically
when I type in this box. I looked at all the settings under properties
and couldn't find what I needed. Is there any VB code or HTML that I
can specify tis property? Thanks!

Jul 12 '07 #2
** I believe he means, that he wants it to wrap, when doing the original
typing - when it gets to the boundary of the textbox, he doesn't want it to
scroll horizontally.

--
David Wier
MVP/ASPInsider
http://aspnet101.com
http://iWritePro.com

"carion1" <dd******@gmail.comwrote in message
news:11**********************@o61g2000hsh.googlegr oups.com...
Replace the carriage returns with '<br />' when you need to write the
text to the page.

On Jul 12, 3:42 pm, slinky <campbellbrian2...@yahoo.comwrote:
>I have a textbox for entries of rather long paragraphs of text on
an .aspx form developed in VB.net on Visual Web Developer Express.
What I can' figure out is how to get the text to wrap as the user is
typing once they get to the margins, just like happens automatically
when I type in this box. I looked at all the settings under properties
and couldn't find what I needed. Is there any VB code or HTML that I
can specify tis property? Thanks!


Jul 12 '07 #3
Set the textmode to multiline. Textboxes by nature are single-line only.
--
Hope this helps,
Mark Fitzpatrick
Microsoft FrontPage MVP 199?-2006. 2007 and beyond

"slinky" <ca***************@yahoo.comwrote in message
news:11**********************@q75g2000hsh.googlegr oups.com...
>I have a textbox for entries of rather long paragraphs of text on
an .aspx form developed in VB.net on Visual Web Developer Express.
What I can' figure out is how to get the text to wrap as the user is
typing once they get to the margins, just like happens automatically
when I type in this box. I looked at all the settings under properties
and couldn't find what I needed. Is there any VB code or HTML that I
can specify tis property? Thanks!

Jul 13 '07 #4

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

Similar topics

1
by: Buddy | last post by:
Hello, Does anyone know how to stop labels from wrapping text. If the text is to long for the label then I want it to hide the text just like out the TextBox control works. Thanks,
3
by: Randy | last post by:
Hello, How would this be done? I've looked at the datagrid itself and also the tableStyle and can't find out how to make text wrap in a cell. Thanks
1
by: Sangeetha | last post by:
I have a datagrid column which I want to expand when i type in some text. Initially I tried increasing the column width on the key down event of that DataGridTextBoxColumn, but it didn't work out as...
0
by: Adrian | last post by:
The print routines that the help-option offers do not have text wrapping. Is there a way to introduce this? Otherwise when you print a multiline textbox, you have to chop up the textBox.Text into...
9
by: Siv | last post by:
Hi, I am trying to find a wrapping routine for text and not having much luck. The reason I need one is that I am producing a report where the text that was stored in the database was written into...
6
by: Markus Ernst | last post by:
Hi Searching for a possibility to display some text with preserved white space and line breaks, but with long lines being wrapped, I found this CSS declaration, which I found helpful: pre {...
6
by: TheTamdino | last post by:
I have experienced this issue in both IE and in Firefox, but usually not the same page at the same time. I'll have text that begins and ends with the paragraph tag <p>. This tag is suppose to...
6
by: Greg Esres | last post by:
I have some text lines to print that are much longer than the width of the paper, maybe as much as 6 times. For a given page, I'd like everything that doesn't fit to print on a second page, and...
5
by: gerry | last post by:
I am trying to create a custom container control that will only ever contain a specific type of control. At design time, when a control of a different type is added to the container I would like...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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?
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.