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
Glenn Patton
NA
308
83.1k
Copying a rich Text Box to a list Box.....
May 22 2012 10:55 AM
Hi All,
Yet another question, I have a large amount of data in a Rich Text Box that I am trying to copy to a List Box. Using the ListBox.Items.Add() method will pick up the text and copy it lock stock & barrel to the list box ignoring any carridge return/ line feeds in the rich text box. what I am pretty sure I need is a foreach loop to go into the richTextBox.
and each time there is a \n add the item to the listBox but I am unsure of how to format this foreach loop. I have tried :
int a = 0;
string[] Readings = Value.Split('\n');
foreach (string v in Readings)
{
a++;
listBox1.Items.Add(a);
}
Reply
Answers (
5
)
Trying to schedule a windows app that needs input
Add Controls To ListView