摘要:
1、要让一个Windows Form的TextBox显示多行文本就得把它的Multiline属性设置为true。 2、在Linux、Unix平台下,textBox.text="First Line\nSecond Line\nThrid Line"; //换行符\n 3、在windows平台下,textBox.text="First Line\r\nSecond Line\r\nThrid Line"; //换行符\r\n 这样的跨平台性不好,用"\r\n"能够满足Windows的要求了,但是如果是其他平台怎么办?为了要确保让换行效果 阅读全文
posted @ 2014-01-20 20:39
包剪锤
阅读(2552)
评论(0)
推荐(0)
浙公网安备 33010602011771号