hey guys need some help in string manipulation, example i have a string LFname = "Hello, world" and textbo1,textbo2. now i want to display "Hello" in textbox1 and display "world" in textbox2. by the way guys thanks for your patience :)
auwi987
0
Light Poster
Recommended Answers
Jump to PostThe easiest way would probably be split and trim:
string[] parts = LFname.Split(','); if (parts.Length != 2) { // Handle unexpected input } textbox1.Text = parts[0].Trim(); textbox2.Text = parts[1].Trim();
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.