本文介绍了如何检查是否在LostFocus时按下了Cmd按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
如何检查LostFocus时是否按下了Cmd按钮?
我有一个表单,如果在输入任何内容之前按下了取消"按钮,它将对第一个字段执行LostFocus处理.
如果第一个字段为空白,则会显示错误.
我需要能够判断是否按下了取消"命令按钮,如果是,则绕过LostFocus上的编辑.
我该怎么办?
在此先谢谢您!
Rahul Chitte:)
Hi All,
How Can I Check If A Cmd Button Was Pressed At LostFocus Time?
I have a form that, if the cancel button is pressed before anything is entered, it performs the LostFocus processing for the first field.
If the first field is blank, an error is displayed.
I need to be able to tell if the Cancel command button was pressed and, if so, bypass the edit on the LostFocus.
How can I do this?
Thanks in advanced!
Rahul Chitte :)
推荐答案
这篇关于如何检查是否在LostFocus时按下了Cmd按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!