Archive for the 'C#' Category



If you're building a Windows Form Application, for example with C# or Visual Basic, then you may need to add a new line character, for example in a multiline TextBox. You do this using Enviroment.NewLine to insert the line break as follows:
Click here to view the below code as plain text
CODE:

textBox1.Text="First Line" + Environment.NewLine + [...]




About

You are currently browsing the DiscoMoose weblog archives for the 'C#' category.

Longer entries are truncated. Click the headline of an entry to read it in its entirety.

Categories

Categories