[Problem Description]
Once click "close" button on vb.net form Textbox's Lostfoucs() event is fired.
[Resolve]
...Handles Textbox.Validating
...
cmdClose.CausesValidation=False
Once click "close" button on vb.net form Textbox's Lostfoucs() event is fired.
[Resolve]
...Handles Textbox.Validating
...
cmdClose.CausesValidation=False
本文解决了一个vb.net应用程序的问题,在点击关闭按钮时触发了文本框失去焦点事件,通过设置关闭按钮不触发验证解决了该问题。
893

被折叠的 条评论
为什么被折叠?



