Closed KaustubhPatange closed 6 years ago
The FCTB does not contain method GetFirstCharIndexFromLine. If you want to select some line and scroll to it, use following code:
fctb.Selection.Start = new Place(0, iLine);//select first char of line iLine
fctb.DoSelectionVisible();//scroll to selection
I am trying to make an advance notepad type application, I've tried to make it best as possible. Only thing i want to implement is how to restore the cursor position when the applications close and restore it back when the application loads.... Any idea..
What I thought ? To save the line number upon exit, to an xml. Retrieve upon startup.. And set it to fctb. Here is my code
But it says GetFirstChar** is not in context.. Any solution or If you have a better solution for this. Please let me know
Thanks in Advance !