2011年12月14日 星期三

[.Net] New Line in TextBox

In ASP.net, you should use \n for getting your mouse cursor to new line.
But in WindowsApplication, you should use \r\n to get new line.

\n is new line character for Linux system occupy 1 byte.
\r\n is new line character for Windows system occupy 2 bytes.

沒有留言:

張貼留言