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
Stephen
NA
3
0
TextBox Lists--Alter the second text box string
Apr 28 2007 10:35 AM
Hi guys-
I am a beginner in C#, and I am writing a very simple application. I basically want two text box's, textBox1, and textBox2. The user writes a list in textBox1, and the list is displayed with some formatting in textBox2.
12345667 '12345667',
12345668 '12345668',
12345669 '12345669',
12345670 '12345670'
I have tried a number of different ways. My biggest hope was putting txtBox1.Text in a string, and splitting it with a regex of ("\n"). I thought it was going to work, but when I do that Regex, it does not remove the "\n" so I cannot add ' right after the split string. Instead it looks something like this:
'12345667
','12345668....
Can someone write me a small code example of an effective way to take the list out of the left text box, format it, and display in text box 2?
Thanks guys!
Stephen
Reply
Answers (
2
)
System.Drawing.Image.FromFile()
How to Program Components using C#?