我如何同步并节省时间?更多在这里...... [英] How can i sync and save time? More in here...

查看:68
本文介绍了我如何同步并节省时间?更多在这里......的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello guyz

Hello guyz

我想问一下如何在申请结束时让申请仍然倒计时。

I want to ask how can i make the application is still countdown while the appliction is closed.

呃,所以我想创建一个专注于倒计时的应用程序。

Uhh, so i want to create an application that focus on countdown.

所以我开始10分钟的倒计时并关闭应用程序,我在6分钟后打开,时间仍然在应用程序时降低已关闭。

So i start the 10 min countdown and close the application and i open after 6 minutes and the time is still countewd down while application is closed.

我想做个人电脑时间。但是怎么能实现呢?

i want to do whit pc time. but how can make it happen?

感谢everys的回复。

Thanks for everys reply.

推荐答案

也许是这样的。需要TextBox1,Timer1和Button1

Maybe something like this. Needs a TextBox1, Timer1 and Button1

    Dim Start As Integer = 0
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Me.Hide()
        Start = 600
        TextBox1.Text = Start.ToString
        Timer1.Interval = 1000
        Timer1.Enabled = True
    End Sub
    Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
        Start -= 1
        TextBox1.Text = Start.ToString
        If Start < 1 Then
            Me.Show()
            Beep()
            Timer1.Enabled = False
        End If
    End Sub


这篇关于我如何同步并节省时间?更多在这里......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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