# Re: Click RichTextBox and Position

Posted by 纪文和 on April 22, 1999 at 11:29:17:

In Reply to: Click RichTextBox and Position posted by Ariel on April 22, 1999 at 08:42:33:

: When I chick RichTextBox,I want to know my position in the RichTextBox,
: which is length from start to my cursor.How to do?

RichTextBox1.SelStart 可找到目前游标所在的位置
RichTextBox1.GetLineFromChar(RichTextBox1.SelStart) + 1 可传回在 RichTextBox 控制项中包含指定字元位置的行数。

Follow Ups: