Arne,
The easiest way I can see is to access the Lines property. This will
expose an array of strings. Once you do that, you can use the Length
property of the array to determine the number of lines.
However, this might be very inefficient as the number of lines
increases, since it involves some work on the control's part to determine
the lines.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"anoehre" <an*******@gmx.de> wrote in message
news:11********************@z14g2000cwz.googlegrou ps.com...
Hi!
I have a multi-line text box in a compact framework c# application. I
need a method to calculate the excact number of lines of the textbox
and a method to calculate the number of used lines after the text box
was filled with a string.
Any ideas?
Greetings,
Arne