保持形式不结束 [英] Keep form from closing
本文介绍了保持形式不结束的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个表单,其中包含一些带有验证规则的字段,这些字段不是Null。我有一个私有函数来验证记录(这里是一个snipet)
I have a form that has some fields with validation rules, which are Not Is Null. I have a private function to validate records (here is a snipet)
展开 | 选择 | Wrap | 行号
推荐答案
你有一个OnClose事件可以在这里使用只需检查OnClose事件中的那些对象,如果条件不正确,取消事件(cancel = true)。
Jim
There is an OnClose event that you can use here. Just check those objects in the OnClose event and cancel the event (cancel=true) if conditions are not right.
Jim
OnClose事件表单没有(取消为整数)。所以我只是这样做
The OnClose event for the form doesn''t have (Cancel As Integer). So do I just do
展开 | 选择 | Wrap | / span> 行号
Elaine,
我认为你的第一篇帖子有95%的解决方案。只需将caode添加到关闭表单的按钮。
Elaine,
I think you have a 95% solution with your first post. Just add caode to the button that closes the Form.
展开 | 选择 | Wrap | 行号
这篇关于保持形式不结束的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文