if user entered "!" "?" "," in te开发者_StackOverflow中文版xtbox and press button, this person see ERROR message in label. how can make that? and what is the code?
in the button click handler do:
if (textbox.text.contains("!") || textbox.text.contains("?") || textbox.text.contains(",")){
//display error message code
label.text = "ERROR";
}
精彩评论