阅读背景:

为什么/ n在Multiline和AcceptsReturn设置为True的TextBox上不起作用

来源:互联网 

I've been attempting to work with the \n in a TextBox with Multiline, and AcceptsReturn set to true. I have looked around and tried \r\n (without any better result) and also creating a String to host "Environment.NewLine" called CRLF, but this approach seems excessive. I've checked MSDN, and multiple entries here on Stackoverflow, but I'm coming up blank. What I find funny is that the text output still contains the new line when I paste said output to any other source. My output window using Console.Write() as well as my CRLF entries work without a hitch.I've been attempting to work with the \n in a T




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: