I am trying to add new lines to a TextBox control. I have MultiLine set to true and AcceptsReturn set to true. If I use the AppendText() method, I just get more text immediately behind what is already there. If I insert or add a newline escape \n it just prints a box in the text at that point. I can't believe this control is that stupid. Maybe it's me. Is there any way to get a newline into a TextBox???
fishsqzr
0
Junior Poster in Training
Recommended Answers
Jump to PostUse either Environment.NewLine or "\r\n". Environment.NewLine is more portable, but that's not a big problem with .net programs. ;)
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.