3
Answers

TextBox problem with newLine

b b

b b

15y
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)