|
example
Suppose there is a textbox1
if ((textbox1.text! = null)&&textbox1.text.length ()> 0&&(textbox1.text! = ""))
{
}
Another way is to write a regular expression based on what you want to enter the text box, as long as the input of the text box does not meet the specifications, an error will be reported
The error reporting controls are errorprovider
Can pass erroprovider.seterror ("error prompt content")
Set error notification. |
|