Adding strings to a RichTextBox in C#

前端 未结 5 1884
独厮守ぢ
独厮守ぢ 2021-01-06 12:51

I currently have a function that will set a value to a RichTextBox, although how could you \"add\" a value or a new line to it, rather than overwriting existing data in the

5条回答
  •  盖世英雄少女心
    2021-01-06 13:26

    richTextBox2.AppendText(String.Format("{0} the date is {1}{2}", "Hello", DateTime.Today, Environment.NewLine));
    

    Please don't use +

提交回复
热议问题