Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 06:23

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



countdown in sec.,min. und std.

Discussion on countdown in sec.,min. und std. within the .NET Languages forum part of the Coders Den category.

Reply
 
Old 11/13/2013, 19:28   #16
 
DeinMud's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 990
Received Thanks: 127
Code:
Public Class Form1
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        Timer1.Interval = 1000
    End Sub
    Private startTime As TimeSpan = New TimeSpan(0, 5, 0)
    Private countDown As TimeSpan = startTime
    Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
        countDown = countDown.Subtract(New TimeSpan(0, 0, 1))
        Label1.Text = String.Format("{0}:{1:00}", countDown.Minutes, countDown.Seconds)
        Timer1.Enabled = Not countDown.Negate = countDown
    End Sub
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        If Timer1.Enabled Then
            Exit Sub
        End If
        countDown = startTime
        Timer1.Start()
    End Sub
End Class
DeinMud is offline  
Reply

Tags
countdown


Similar Threads Similar Threads
Countdown für die HP???
11/22/2010 - Metin2 Private Server - 5 Replies
Hey ich suche einen Countdown der für eine Servereröffnung benutzt werden könnte also wieviel Tage Stunden Minuten und Sekunden bis zu erröfnung noch bleiben. Vill könnte einer ein Script posten oder hochladen Bekommt auch ein THX
Countdown in GUI
01/09/2009 - GW Bots - 3 Replies
Hi, wie bekomm ich denn einen Countdown in ne GUI? Aber der countdown soll aber durch zb ne func restartet werden... also er zählt von 10sec nach 0 und sobald man ne func aufruft fängt er neu an... #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 526, 72, 199, 274)
Countdown ~ Down 2
10/05/2008 - Metin2 Private Server - 1 Replies
20:50 Serverdown... o0
Countdown ~ Down
10/02/2008 - Metin2 Private Server - 54 Replies
Gerade war ich in longju online und plötzlich schrieb ein Gamemaster (?) 10...9...8...7...6...5...4...3...2...1... Danach wurden meine beiden longju Fenster geschlossen und nun komme ich nicht mehr rein. War das einfach ein angekündigter Serverdown?



All times are GMT +1. The time now is 06:23.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.