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

  • Home
  • SEARCH
  • 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 7695327
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T21:31:22+00:00 2026-05-31T21:31:22+00:00

Hi i am doing a small project in C#, and i need to know

  • 0

Hi i am doing a small project in C#, and i need to know what commands are comming from input source so i can do my work accordingly..
here is example…

textBox1.Text = "First line \nSecond line";
richTextBox1.Text = "First line \nSecond line";

Richtextbox shows this output:

First line

Second line

Textbox show this output:

First line Second line

please tell me how to show new line "\n" or return "\r" or similar input as a character output in text or richtextbox. so i can know that newline command is coming from input data.

for example text or richtext box will show this output.

First line \nSecond line

thankx in advance.

  • 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-05-31T21:31:24+00:00Added an answer on May 31, 2026 at 9:31 pm

    Lets say that i have a string which have new line :

     string st = "my name is DK" + Environment.NewLine + "Also that means it's my name";
    

    Now that i want to show that there is new line in my text there you go :

     textBox1.Text = st.Replace(Environment.NewLine, "%");
    

    This will show the newline chat with % sign

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im doing a small project in C++ in LINUX PLATFORM.i need to search 10
I am doing a small project using JPA. I need to insert the employee
After doing some research I need some advice. This is a small project which
I'm doing a small project in C after quite a long time away from
I am planning on doing a small arduino project and would like to know
I have a small project I am doing in Python using web.py. It's a
I have a small- to medium-size project that I am doing for my software
I have a small project where I need just part of boost library, boost::regex
I have a small project that builds a number of targets from the same
I need to build a small database for a school project and I'd 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.