关闭确认 [英] Close Confirmation

查看:81
本文介绍了关闭确认的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个具有多种形式的程序.我有一个选项,允许用户设置是否要在关闭表单之前进行提示.我的妓女到位,我知道如何取消活动.问题是如何确保关闭命令来自用户而不是程序.在我的程序退出之前,它将保存所有表格.我想知道如何告诉各个表格该命令来自应用程序而不是用户.我希望用户每次尝试关闭表单时都能看到提示,但在程序关闭表单时不希望看到该提示.

这对我有很大帮助!

谢谢!

I have a program that has several forms. I have an option that allows users to set whether they want to be prompted before they close the form. I have the hooker in place and I know how to cancel the event. The problem is how do I make sure the close command is coming from the user instead of the program. Before my program exits it saves all of the forms. I want to know how to tell the individual forms that the command is from the application instead of the user. I want the user to see the prompt every time the user tries to close the form, but not when the program closes the form.

It would help me a lot!

Thanks!

推荐答案

[ ^ ]可能会有所帮助. :)
This[^] might help. :)


这篇关于关闭确认的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆