R
Ramsin Savra
Hi, I have below code, to move the cursor to a specific line in a text-box
control (I don't want to use RichTextBox) but doesn't work! any suggestions?
int charIndex = 1;
for (int i = 0; i < snpObject.edtTextBody.Lines.Length && i <
iRequestedLineNumber - 1; ++i)
{
charIndex += snpObject.edtTextBody.Lines.Length;
}
snpObject.edtTextBody.Select(charIndex, 0);
control (I don't want to use RichTextBox) but doesn't work! any suggestions?
int charIndex = 1;
for (int i = 0; i < snpObject.edtTextBody.Lines.Length && i <
iRequestedLineNumber - 1; ++i)
{
charIndex += snpObject.edtTextBody.Lines.Length;
}
snpObject.edtTextBody.Select(charIndex, 0);