Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How enter multi lines text in desgin time

Reply
Thread Tools

How enter multi lines text in desgin time

 
 
ad
Guest
Posts: n/a
 
      08-07-2006
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 some lines of text at desgin time?



 
Reply With Quote
 
 
 
 
=?Utf-8?B?YnJpYW5zW01DU0Rd?=
Guest
Posts: n/a
 
      08-07-2006
Hello ad,

I'm not really sure what you're asking but I think you might be trying to
add more than one line of text to the multiline textbox. You can do that
using one of the following techniques:

1) Add the lines to the text already in the box:
TextBox1.Text = "The first bit of text. ";
TextBox1.Text += "Another bit or text. ";
TextBox1.Text += "Still more.";

2) If you're adding alot of text often, you might want to use the
StringBuilder class. Add the text to a StringBuilder object and then assign
that text to the TextBox.Text property.

If you're asking how to add new rows of text, then you'll want to look at
the \n newline escape character.
--
enjoy - brians
http://www.limbertech.com


"ad" wrote:

> 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 some lines of text at desgin time?
>
>
>
>

 
Reply With Quote
 
 
 
 
ad
Guest
Posts: n/a
 
      08-08-2006
Thanks,
But I mean add mutli line to a TextBox at desgin time.
For example, I have two lines below:
This the fist line.
This the sceond line.

How can I add these to line to a TextBox at desgin time.


"brians[MCSD]" <> ¼¶¼g©ó¶l¥ó·s»D:149AC17B-7076-4FEC-8637-...
> Hello ad,
>
> I'm not really sure what you're asking but I think you might be trying to
> add more than one line of text to the multiline textbox. You can do that
> using one of the following techniques:
>
> 1) Add the lines to the text already in the box:
> TextBox1.Text = "The first bit of text. ";
> TextBox1.Text += "Another bit or text. ";
> TextBox1.Text += "Still more.";
>
> 2) If you're adding alot of text often, you might want to use the
> StringBuilder class. Add the text to a StringBuilder object and then
> assign
> that text to the TextBox.Text property.
>
> If you're asking how to add new rows of text, then you'll want to look at
> the \n newline escape character.
> --
> enjoy - brians
> http://www.limbertech.com
>
>
> "ad" wrote:
>
>> 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 some lines of text at desgin time?
>>
>>
>>
>>



 
Reply With Quote
 
Damien
Guest
Posts: n/a
 
      08-08-2006

ad wrote:
> Thanks,
> But I mean add mutli line to a TextBox at desgin time.
> For example, I have two lines below:
> This the fist line.
> This the sceond line.
>
> How can I add these to line to a TextBox at desgin time.
>

Switch to HTML view. Inside the textarea element, put the exact text
you want to appear (including newlines, tabs, etc)?

Damien

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Desgin Web Application Husam ASP .Net 1 04-08-2008 04:08 PM
capturing from text area Shft+Enter, Control+Enter, Alt+Enter and browser issue. HopfZ Javascript 0 08-28-2006 10:11 AM
I can't see the theme of the page in desgin mode Javier Martínez ASP .Net 0 01-02-2006 06:15 PM
Q) Application Desgin: MSMQ, ADO in VB6 Ramie MCSD 4 11-03-2003 02:42 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57