I don't know about lines, but the SelStart property will let you know where your cursor is you type. You can also check the Value in the InterActiveChange event to determine lines, can't you? It's a combination of total characters and CR/LF entries.
HTH
Barbara
>How can I find the number of lines in an edit box as I am typing into the edit box. Memlines() only changes from the valid event and not the interactivechange event and it is too late to tell a user that the
>max no of lines has been exceeded after they have typed the data.