Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8990453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T22:30:12+00:00 2026-06-15T22:30:12+00:00

Is it possible to display the label text with line breaks exactly as per

  • 0

Is it possible to display the label text with line breaks exactly as per the image

enter image description here

I need the text on the label to be printed exactly can some one help me, my desired text that has to be shown on the label will be stored in a string-builder

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T22:30:14+00:00Added an answer on June 15, 2026 at 10:30 pm

    You may append HTML <br /> in between your lines. Something like:

    MyLabel.Text = "SomeText asdfa asd fas df asdf" + "<br />" + "Some more text";
    

    With StringBuilder you can try:

    StringBuilder sb = new StringBuilder();
    sb.AppendLine("Some text with line one");
    sb.AppendLine("Some mpre text with line two");
    MyLabel.Text = sb.ToString().Replace(Environment.NewLine, "<br />");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to make a label display some text, and then after a short
Is it possible to display an image in a FreeTextBox? If yes, how can
Please help me with jQuery Validate plugin. It is possible to display the error
Possible Duplicate: C# Text don’t display on another form after double clicking an item
In this example: http://jsfiddle.net/6L6ZL is possible align to right the text of label without
How can I add text to points rendered with geom_jittered to label them? geom_text
I want to display some text means name of any source file with extension
is it possible display a 'x' for an html checkbox when we click on
Is it possible to display images next to items in FlyoutAnchor submenu? I try
How is possible to display a QMessageBox::warning with the triangular exclamation mark symbol like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.