Validating text box

by  |  13-Jan-2017 12:45

In a Win Form I'm doing initial validation in the Form. To make the code short only three fields are shown in the code.

validating text box-32validating text box-21

Validation Text Box passes its constraints object to the generating function.

The following code demonstrates a dynamic Validation Text Box that only accepts a 5 digit zip code after PM, and only accepts a county name before then.

If no other text object is selected, the system hides the keyboard; if, on the other hand, the user selects another text object, it becomes first responder and the keyboard for that object is displayed.

There are a couple of exceptions to this common behavior.

Server side validation is performed by a web server, after input has been sent to the server.

Community Discussion