Archive for the 'C#' Category
How To Add A New Line in a C# or Visual Basic TextBox
9 Comments Published 2 years, 8 months ago in C#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 + [...]
Search
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
- ASP (3)
- ASP Basics (3)
- Blogs (2)
- C# (1)
- deals (1)
- Firefox (1)
- Flash (1)
- Google (6)
- Hacks (4)
- Java (1)
- PHP (12)
- Basics (8)
- Files (1)
- Image Handling (3)
- Puzzles (1)
- Ruby (1)
- Tips (10)
- Web Hosting (3)
- Web Hosting Articles (1)
- Web Hosting News (2)
- Windows (6)
- Wordpress (2)
Latest
- Iiyama 24″ monitor
- Deal: HP Photosmart C4280 under £45 on Amazon
- Brainteaser: Which letter comes next?
- Hacking the translation plugin for nicer URLs
- How to Access a Page in Google’s Cache
- How to Control the Mouse Pointer Without a Mouse in Windows XP
- Use Google to define words
- List all processes with the Windows Command Line
- Kill a Process from the Windows Command Line
- Google: Search within a site
Archives
Categories
- ASP (3)
- ASP Basics (3)
- Basics (8)
- Blogs (2)
- C# (1)
- deals (1)
- Files (1)
- Firefox (1)
- Flash (1)
- Google (6)
- Hacks (4)
- Image Handling (3)
- Java (1)
- PHP (12)
- Puzzles (1)
- Ruby (1)
- Tips (10)
- Web Hosting (3)
- Web Hosting Articles (1)
- Web Hosting News (2)
- Windows (6)
- Wordpress (2)
