TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Rajavel G
NA
95
44.3k
C# code to count number of lines in textbox ?
Jul 6 2017 7:16 AM
C# code to count number of lines in text box ?
string strtext = textbox1.text;
strtext = strtext.Replace('\r', '\n').Trim();
rslt = 0;
foreach (string s in strtext.Split('\n'))
rslt++;
txtline.Text = rslt.ToString();
I tried that above.. but wrap lines of text box is not included with in count??
Thanks in Advance
Reply
Answers (
4
)
How to my website work in Online and Offline also
How to do save data with showing the Details of Page, Confir