Link to home
Start Free TrialLog in
Avatar of ybt
ybt

asked on

C# string manipulation

Lets say I have a string, i.e.
"firstname1 lastname1; firstname2 lastname2; firstname3 lastname3; firstname4 lastname4; "
in a TextBox, how can I by clicking on any firstname or lastname get both selected together with semicolon?
ASKER CERTIFIED SOLUTION
Avatar of Dustin Saunders
Dustin Saunders
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ybt
ybt

ASKER

Thank you, it's working, I just had to check for empty string if an user clicks outside of a text in the TextBox.