消息框出现在表单关闭 [英] Message box to appear on form close

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

问题描述

如果在我的表单打开时添加了一些数据,我想要一个消息框出现并停止页面关闭,然后有一个是/否关闭表单....... .....感谢您的帮助.............. Bob



xxx

If there has been some data added to my form when it has been open, I would like a message box to appear and stop the page closing, then have a yes/no to close the form............Thanks for any help..............Bob


xxx

推荐答案

将您的代码放入Form_Unload中,如果您不想继续关闭,请设置Cancel = True。
Put your code in Form_Unload, and set Cancel=True if you don't want to continue closing.


这篇关于消息框出现在表单关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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