Thanks for that, but it didn't work.

EM_GETLINECOUNT is empty if that helps.

I've only got VB5 mind, does that use VB6 stuff?