The SelStart property of an editbox gives you the position of the cursor (or the insertion point) counting from the beginning of the text.
Knowing this position, you can parse the text and count the chr(13) chars to get the row number.
Vlad
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only