Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

C#: Trap Consecutive Spaces

$
0
0

Hi,

Hope someone can help me with this. I need to trap or not allow a user from inputting consecutive spaces but I dont know how to do it. Im using C# in Windows Application Form. I have a description textbox and that is where I need not to accept the consecutive spaces. Space should only be accept after a non space character. Hope you get what I mean (e.g. I(space)(space)am(space)good) the two spaces between "I" and "am" should not be allowed, only the first space should be allowed.

Thanks,

MukuroRokudo


Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>