Multiline TextBox multiple newline

前端 未结 7 487
Happy的楠姐
Happy的楠姐 2020-12-05 10:09

I set a value for a Multiline Textbox like this.

textBox1.Text = \"Line1\\r\\n\\r\\nLine2\";

But, only one line space in outpu

相关标签:
7条回答
  • 2020-12-05 10:59

    While dragging the TextBox it self Press F4 for Properties and under the Textmode set to Multiline, The representation of multiline to a text box is it can be sizable at 6 sides. And no need to include any newline characters for getting multiline. May be you set it multiline but you dint increased the size of the Textbox at design time.

    0 讨论(0)
提交回复
热议问题