Jam*_*ler 2 .net c# richtextbox winforms
我目前有一个函数可以为RichTextBox设置一个值,虽然你怎么能"添加"一个值或一个新行,而不是覆盖RichTextBox中的现有数据?
richTextBox2.Text = DateTime.Today + " Hello";
Run Code Online (Sandbox Code Playgroud)
age*_*t-j 12
richTextBox2.AppendText(Environment.NewLine + DateTime.Today + " Hello");
Run Code Online (Sandbox Code Playgroud)
Rog*_*Far 10
richTextBox2.AppendText(String.Format("{0} the date is {1}{2}", "Hello", DateTime.Today, Environment.NewLine));
Run Code Online (Sandbox Code Playgroud)
请不要使用+
| 归档时间: |
|
| 查看次数: |
53301 次 |
| 最近记录: |