How do I make a label multi-line?

Posted on 2009-02-11
Last Modified: 2013-12-17
I need to make a text label multi-line using WinForms C# 3.5

Question by:newbieweb
    LVL 27

    Accepted Solution

    try this:

    string labelText =  string.Format("This is line 1.{0}This is line 2.", Environment.NewLine);

    label1.Text = labelText;
    LVL 62

    Assisted Solution

    by:Fernando Soto
    Hi newbieweb;

    use the \n when you want to begin a new line.

    label1.Text = "This is the first line \nThis is a second line\nThis is the Third line";


    Author Closing Comment

    Environment.NewLine is new to me.


    Featured Post

    Courses: Start Training Online With Pros, Today

    Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

    Join & Write a Comment

    In my previous article ( we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
    For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK ( for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now