Maskedtextbox use validatingtype
The Text property will always retrieve the user's input formatted according to the mask and the Text Mask Format property. When the current insertion point is at a literal character, the user has a number of options: You can use the Mask Full property to verify whether or not the user has entered all of the required input. You can use the Prompt Char property to specify a custom prompt character.
Gets a value indicating whether the caller must call an invoke method when making method calls to the control because the caller is on a different thread than the one the control was created on.
This standard provider supports all Unicode characters except for surrogates and vertically combined characters; however, the Ascii Only property can be used to restrict input to the characters sets a-z, A-Z, and 0-9.
The Masked Text Box control actually defers all mask processing to the System. Masked Text Provider class specified by the Masked Text Provider property.
)\b"; string ip1 = "192.168.0.1"; string ip2 = "302.0.0.1"; Regex. Is Match(ip2, pattern); // returns false 255 values, jumps boxes, etc, etc...
Optionally, invalidates the child controls assigned to the control.