Disclaimer: I’m new C#, so I’m blogging as I learn. So if you see something I’m missing or a different way of getting the same thing done, leave a comment below and I’ll update the post.
In looking for a way to break a multi-word string into its component string so I could fill in some textboxes on a gui Windows app. I came across this way of accomplishing it.
String input = “This sentence says it all”; String output = input.Split(‘ ‘); textBox6.Text = output; textBox7.Text = output; textBox8.Text = output;
This was derived from How to find the second word in a string on StackOverflow.