Input validation in Winforms -


In the good old MFC, DDX routine forms will be created in recognition for form entries. For example, it was possible to automatically check that the user entered the string in the text box for numerical input.

Is there such a mechanism in Winkforms? Obviously, anybody can add and process handlers to events such as 'On Change', but I'm asking if there is any underlying mechanism.

Thank you

You must have your ValidatingTextBox with a valid Regex property Essentially, whenever you decide that you want to validate it (keystrokes, enter key, loses focus ...)

plain text box at the simplest level But there are valid and valid events that you can supply handler for personal matters.


Comments