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 5993501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:41:03+00:00 2026-05-22T23:41:03+00:00

I have a very simple .NET program. It’s just to write a string to

  • 0

I have a very simple .NET program. It’s just to write a string to the textbox. There is a strange character appearing at the end of my string.

enter image description here

This happens only on my 32-bit XP box. The same program works fine on another 64bit Windows 2008 machine.

The program is as simple as this.

    private void Form1_Load(object sender, EventArgs e)
    {
        textBox1.Text = "Hello\n\0\0\0\0\0\0";
    }

I know it’s odd to add \0 at the end of the string and I can trim them before applying to the textbox. The textbox is set to allow multi-line.

Just out of curiousity, does anybody know where the problem comes from? Both machines got .NET 3.5 SP1 installed. Both of them are set to have the same regional settings. I doubt if it is related to 32-bit or 64-bit.

UPDATE

Thanks to @DBM and @Andrew. The strange character is coming from \n but nothing to do with \0. Now, it sounds like Windows 2008 can understand both \r\n and \n. Can anybody confirm that?

  • 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-22T23:41:04+00:00Added an answer on May 22, 2026 at 11:41 pm

    Standard end-of-line sequence in Windows is \r\n. The text box isn’t recognising the \n as a new-line without the preceding carriage return (\r).

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

Sidebar

Related Questions

I have a very simple ASP.Net page that acts as a front end for
I have a very simple VB.net Windows Service written using VS.net 2008. The program
I have a very simple program that consists of a .NET 2.0 exe (Program.exe)
I have a very simple .net application for testing SMTP on .net. But i
We have a very simple ASP.NET web application comprising mostly static content and a
I have a very simple windows Service that is developed in vb.net 2008. When
I'm making a very simple WCF (C#, .NET 4.0) licensing program that automatically emails
I am just trying to compile and run a very simple test program, but
I have a very simple table in access. The data is stored from VB.NET
I have made a deployment project for my very simple .Net 4.0 C# Winforms

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.