este el codigo q encontre:
Código:
Gracias Private Sub Text2_KeyPress(KeyAscii As Integer)
Dim iLineas As Integer
KeyAscii = Asc(UCase(Chr(KeyAscii)))
If KeyAscii = 13 Then
iLineas = SendMessage(Text2.hWnd, EM_GETLINECOUNT, 0&, ByVal 0&)
Label1.Caption = " " & SendMessage(Text2.hWnd, EM_GETLINECOUNT, 0&, ByVal 0&) '
If Label1.Caption > 12 Then Label2.Caption = "2/2"
If Label1.Caption > 25 Then Label2.Caption = "3/3"
If Label1.Caption > 38 Then Label2.Caption = "4/4"
End If
End Sub

