Check White Space in textbox (C#) -


how check white space in textbox?. want take username input, there shouldn't white space. how check returning true false?

try this:

bool iswhitespace = txtbox.text.any(char.iswhitespace); 

this question resolved here


Comments

Popular posts from this blog

multithreading - Exception in Application constructor -

React Native allow user to reorder elements in a scrollview list -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -