对话弹出窗口 [英] dialogue pop up window

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

问题描述

我将如何编写程序以每30天定期弹出一个许可协议窗口?换句话说,我希望程序首先从许可协议开始(用户单击我同意",然后每30天过期",并且当用户尝试运行该程序时将弹出该窗口,否则该程序将

解决方案

您可以将日期放入注册表或设置文件中,并在每次应用程序时检查日期

如果时间已到,则在程序启动时仅创建一个模式窗口(对话框)即可;如果用户不同意,请退出程序.

How would I go about writing a program to periodically pop a window for a license agreement say every 30 days? In other words, I would want the program to start initially with the license agreement (user clicks "I agree" and then every 30 days "expire" and the window would pop up when the user tries to run the program, otherwise the program is non-functional. Any pointers would be appreciated.

解决方案

You can either put the date in the registry, or in the settings file, and check the date everytime the application starts. Just create a modal window (dialog) when your program starts if the time has expired, and if the user does not agree, exit the program.


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

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