Is there a way to find out the total number of used lines in a TextBox in VB.NET without using API?
-- Ethan --
Printable View
Is there a way to find out the total number of used lines in a TextBox in VB.NET without using API?
-- Ethan --
this would does the trick
VB Code:
Dim ar() As String ar = TextBox1.Lines MsgBox(ar.Length())
by the way , when you hit enter and leave out an empty line is considered 1 line.
i think yes