FRIHOSTFORUMSSEARCHFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

.NET Development - Windows Form

 


shenyl
I need to create a Custom TextBox for output of text.
As such, I created one with TextBox, MultiLine, Read Only and added a property to append text into the TextBox.Text.

I then run into the issue of NewLines.

After consultation with text book, I added the \n, but it does not work.
Then I added the \n\r, and still does not work.

Finally, I googled and discover that \r\n should be use.

That means the order is important. \r\n - OK, not \n\r.

This I hope will be of help to anyone seeking to embed newline
in a multiline TextBox.

Comments welcome on C# and .NET development.
Related topics

asp.net email form
Linux and windows
Mac or Windows -- the cool vs. the shizznik
Linux vs. Windows (for businesses)
Perceptionsystem Outsourcing - Web Development & Web Des

Windows 7"nin Fiyatlandırma Kriterleri Şirketleri Yaktı
[Official] Best PHP Editor
Help Apache problems
Looking for easy FormMail Script
GIMP

Things against mosquito flies
Install Linux with a locked BIOS
Aantal vraagjes over functies van DirectAdmin
BSOD Code
reference for enabling multimedia in Linux
Reply to topic    Frihost Forum Index -> Computers -> Software

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.