Vb.net倒计时器 [英] Vb.net count down timer

查看:402
本文介绍了Vb.net倒计时器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个倒计时器,当程序运行时间达到3:52分钟就会打开一个新表格



什么我试过了:



i还没有尝试任何东西,我无法在互联网上找到任何东西

i want to create a count down timer were when the program has reached 3:52 mins of running it will open up a new form

What I have tried:

i havent tried anything yet and i cant find anything on the internet

推荐答案

Private WithEvents ICantBeBotheredToGoogleThis As New Timer

Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    ICantBeBotheredToGoogleThis.Interval = 232000
    ICantBeBotheredToGoogleThis.Start()
End Sub

Private Sub ICantBeBotheredToGoogleThis_Tick(sender As Object, e As EventArgs) Handles ICantBeBotheredToGoogleThis.Tick
    Dim IAmALazyCoder As New Form2
    IAmALazyCoder.ShowDialog()
End Sub


这篇关于Vb.net倒计时器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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