Possible Duplicate:
How do I replace multiple spaces with a single space in C#?
I have a TextBox in which user is going to enter search Criteria in TEXTBOX. Now, i want to prevent the user from entering NOT MORE THAN ONE SPACE AFTER EACH WORD in TEXTBOX. How to do it in C#.
Thanks in Advance!