Hello !!
I want an API function which will count LINE and COLUMN in a rich text box.
Pls help me !!
Thanks alot !!
MMH
Printable View
Hello !!
I want an API function which will count LINE and COLUMN in a rich text box.
Pls help me !!
Thanks alot !!
MMH
Just a question; Do you want to count the amout of times the words "Line" and "Column" apear, or do you want to count the amount of lines and columns? Because, as far as I know, Text Boxes don't have columns. (But its very possible I'm wrong)
for lines use the :
richtextbox.GetLineFromChar
method.
Hello !!!
Well there's an API function call which counts the line and column in the RTF box....
I want to keep track of the 'text cursor' in rtf box..
eg: if the cursor is on the 3rd line at 10th column position,
it should display as follows.
Line : 3 Column : 10
then, if position of cursor changes to 7th line with 2nd column
it should display as follows.
Line : 7 Column : 2
the code is placed under selchange property of Rtf Box...
So plz send me the code.... I will be thankful..
Regards.
MMH