由--------------分隔的文本行 [英] Textbox lines separeted by --------------
本文介绍了由--------------分隔的文本行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有textBox1,如果我按下textBox1中的按钮显示数字,当我再按它时该数字替换另一个。我想这样:(换行)
Hi, i have textBox1, if i press button in textBox1 shows number, when i press it again that number replace another. I want this: (new lines)
textBox1
1
------- -
--------
2
---------
---------
6
--------
textBox1的结尾
end of textBox1
推荐答案
您可以使用 RichTextBox 代替 TextBox 并调用
追加方法。
这样的事情:
richTextBox1.Append("1");
richTextBox1.Append("\n --------");
问候。
这篇关于由--------------分隔的文本行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文