使用计时器从一种形式转换为另一种形式???? [英] redrction from one form to other using timer????

查看:87
本文介绍了使用计时器从一种形式转换为另一种形式????的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用计时器控件从一种形式重定向到另一种形式,或者我需要在几秒钟后转到下一种形式,而无需执行任何操作(单击按钮之类的东西).

i need to redirect from one form to another form using the timer control or i need to go for next form after some seconds , with out doing any action(clicking the buttons some thing like that).

推荐答案

只需将计时器控件放在表单上,​​并在事件处理程序中简单地隐藏和显示表单即可.使用Enabled属性可以激活或停用它.在事件处理程序中将其停用,因为此事件仅应发生一次.

祝你好运!
Simply place the timer control on the form and in the eventhandler simply hide and show the forms. Use the Enabled property to activate or deactivate it. In the eventhandler deactivate it because this event should only happen once.

Good luck!


我为您编写了一个简单的vb6示例项目,该项目的表单只有一个按钮.当您单击它时,它将创建第二个窗体,该窗体将在2秒钟内可见,然后再次消失.您可以单击多次以创建越来越多的表单,这些表单将在创建后的2秒钟内消失.

示例项目:
http://orion.woelmuis.nl/FormTimerExampleProject.zip [
I wrote you a simple vb6 example project that has a form with only a single button. When you click it, it will create a second form that will be visible for 2 seconds and then disappears again. You can click multiple times to create more and more forms that will simply be gone in 2 seconds after creation.

Example project:
http://orion.woelmuis.nl/FormTimerExampleProject.zip[^]

Good luck!


这篇关于使用计时器从一种形式转换为另一种形式????的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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