Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiline TextBox. Maximum lines allowed

I suppose there's a limit for the lines alowed in a TextBox with the MultiLine option set to true.

I have a program that every several minutes, checks an email account, but for control purposes i put a TextBox that indicates what's been doing.

My curiosity is, does anyone know how much lines are allowed ? And does throw an exception when reached that line ?

EDIT Sorry forgot to mention is in WinForms

EDIT 2 Perhaps, someone knows of a way to eliminate older lines, will grated appreciated

like image 751
Carlos Valenzuela Avatar asked Mar 11 '11 18:03

Carlos Valenzuela


People also ask

What is multiline in textbox?

A multiline text box control is a large text box that can display several lines of text or accept this text from user input. Text boxes are often linked to select value lookups and detailed menus. You can place a multiline text box control within a section control.

Is it used to enter multiple lines of data in a text box?

You can put multiple lines in a cell with pressing Alt + Enter keys simultaneously while entering texts. Pressing the Alt + Enter keys simultaneously helps you separate texts with different lines in one cell. With this shortcut key, you can split the cell contents into multiple lines at any position as you need.

How do you make a multiline text box?

To create a multi-line text input, use the HTML <textarea> tag. You can set the size of a text area using the cols and rows attributes. It is used within a form, to allow users to input text over multiple rows.

What is use of multi line property of text box control?

A multiline text box allows you to display more than one line of text in the control.


2 Answers

There's no limit on the number of lines that a text box can display.

There is, however, a limit on the number of characters that the control can hold. See this question for further details on this topic.

like image 124
Frédéric Hamidi Avatar answered Sep 20 '22 18:09

Frédéric Hamidi


If you set the TextBox.MaxLength property to zero, the amount of text is limited only by available memory.

like image 23
kprobst Avatar answered Sep 21 '22 18:09

kprobst