J
J
Jomm2021-07-18 19:30:36
Windows Forms
Jomm, 2021-07-18 19:30:36

How to get the number of lines in a TextBox?

I want to know the number of lines so that I can write the lines to different variables.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
BasiC2k, 2021-07-18
@BasiC2k

You can split the contents into an array through Split (separator - line break) and count the number of elements.

A
Alexander Ananiev, 2021-07-18
@SaNNy32

https://docs.microsoft.com/en-us/dotnet/api/system...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question