I am using Visual studio to create a C# windows form
that helps me find the suffix,first and last name of the user. I am using string.split
to find the first space and split from there but it only gives me from the first space onward. if the user input " Mr. Donald duck " I can not manage to make it work in the situation.
"Mr. -5 spaces- Donald -5spaces- Duck"
the code doesn't read past the first space.
any suggestions?