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
Thanattha Bussapak
NA
20
19.4k
How to Trim and Split string to textbox
Jan 29 2014 10:09 AM
I am try to trim ABCD - abcd ,I want output :
fList_s.Text = ABCD
fList_d.Text = abcd
but fList_s.Text = ABCD - abcd
String strList = "ABCD - abcd"
string[] items = new string[]
{
strList
};
foreach (string item in items)
{
string trimmed = item.TrimStart('-', ' ');
fList_s.Text = trimmed; //
}
char[] charsToTrim = { '-', ' ' };
string[] words = strList.Split();
foreach (string dest in words)
fList_d.Text = dest; //
Reply
Answers (
2
)
windows phone app can modify the website's database?
Change key baised style in silverlight