my task: to design a wordprocessing program for php code in VB. the only part i'm having trouble with is having a function that counts the lines in the text box. any ideas how i could do this?