Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to add a line to a multiline TextBox?
    primarykey
    data
    text
    <p>How can i add a line of text to a <a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.textboxbase.multiline%28v=VS.80%29.aspx" rel="noreferrer">multi-line</a> <a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.textbox%28v=VS.80%29.aspx" rel="noreferrer"><code>TextBox</code></a>?</p> <p>e.g. pseudocode;</p> <pre><code>textBox1.Clear(); textBox1.Lines.Add("1000+"); textBox1.Lines.Add("750-999"); textBox1.Lines.Add("400-749"); ...snip... textBox1.Lines.Add("40-59"); </code></pre> <p>or</p> <pre><code>textBox1.Lines.Append("brown"); textBox1.Lines.Append("brwn"); textBox1.Lines.Append("brn"); textBox1.Lines.Append("brow"); textBox1.Lines.Append("br"); textBox1.Lines.Append("brw"); textBox1.Lines.Append("brwm"); textBox1.Lines.Append("bron"); textBox1.Lines.Append("bwn"); textBox1.Lines.Append("brnw"); textBox1.Lines.Append("bren"); textBox1.Lines.Append("broe"); textBox1.Lines.Append("bewn"); </code></pre> <p>The only methods that <a href="http://msdn.microsoft.com/en-US/library/system.windows.forms.textboxbase.lines%28v=VS.80%29.aspx" rel="noreferrer">TextBox.Lines</a> implements (that i can see) are:</p> <ul> <li>Clone</li> <li>CopyTo</li> <li>Equals</li> <li>GetType</li> <li>GetHashCode</li> <li>GetEnumerator</li> <li>Initialize</li> <li>GetLowerBound</li> <li>GetUpperBound</li> <li>GetLength</li> <li>GetLongLength</li> <li>GetValue</li> <li>SetValue</li> <li>ToString</li> </ul> <p><img src="https://i.stack.imgur.com/faVJn.png" alt="enter image description here"></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload