Write in new line in rich text box. with vb

后端 未结 4 1744
[愿得一人]
[愿得一人] 2021-01-23 21:29

Hi guys i want to know how to write every word in a phrase in a new line in a richtextbox lets say the phrase is this \"Returns a string array that contains the substrings in t

4条回答
  •  生来不讨喜
    2021-01-23 22:13

    Dim words As String = TextBox1.Text
    words.Replace(" ", ControlChars.Lf)
    RichTextBox1.Text = words
    

    You just need to replace " " by ControlChars.Lf aka New Line Character

提交回复
热议问题