3
Answers

TextBox problem with newLine

Ask a question
b b

b b

14y
5.8k
1

Hello,
I have a textbox called textBox1, which multiline property is true. When i insert a statement like:

                          
 textBox1.Text="Hello\r\nWorld";

its showing like :
Hello
World

But after that i want to set the cursor position on the third line. How to do that. I am using windows applicatio with C#.
regards,
bjb

Answers (3)