开发者

How can I restrict a textbox to take only one predefined string and throw an message box in else case

开发者 https://www.devze.com 2023-01-28 03:20 出处:网络
In my winform application I have a textbox that should only开发者_如何学运维 take a predefined local server address and throws an message box in the else case as soon as the focus changes from that te

In my winform application I have a textbox that should only开发者_如何学运维 take a predefined local server address and throws an message box in the else case as soon as the focus changes from that textbox


See the Validating event. This event will fire when the control should be validated, which by default happens when the control loses focus.

0

精彩评论

暂无评论...
验证码 换一张
取 消