468,139 Members | 1,454 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,139 developers. It's quick & easy.

How to count Lines?

Ajay Bhalala
119 64KB
Hello experts,

I have 1 form.

In this form there is one textbox named "txtName" and 1 button named"btnCountLines" in the windows form.

I want to know how to check How many lines are entered in the txtName?

I need your help as soon as possible. Thank you in advance for your help.
Jan 16 '15 #1

✓ answered by Frinavale

The TextBox Class has a Lines Property that returns an array of strings that represent the lines in the TextBox. You can then use the array's Length property to see how many lines there are in the TextBox.

2 1015
Frinavale
9,735 Expert Mod 8TB
The TextBox Class has a Lines Property that returns an array of strings that represent the lines in the TextBox. You can then use the array's Length property to see how many lines there are in the TextBox.
Jan 16 '15 #2
Ajay Bhalala
119 64KB
Thank you so much for your information.

It's really work. and it is very useful for me.

Thank you so much for your help. Thank you very very very much. You are very helpful for me and all. Thank you.
Jan 16 '15 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

22 posts views Thread by Ling Lee | last post: by
3 posts views Thread by Matthias Haffke | last post: by
23 posts views Thread by Paul Mars | last post: by
4 posts views Thread by zoneal | last post: by
1 post views Thread by bill | last post: by
9 posts views Thread by NvrBst | last post: by
1 post views Thread by gcdp | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.