vb.net - How can I validate text box input? -


I am creating a program and I need to validate my text box. Put the user in the phrase for the program must be given. But I'm not sure that to ensure that the user has actually entered a phrase, the phrase (ex.) Is not Skldkfdl, or it is not a place.

You get rid of the white space first. String () ...

Then check the string.indexoff ("") to check for a place.

If the function returns 1 returns, it means that there is no space in the string.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -