·  Start ·  Programme ·  Codes ·  Tipps ·  ActiveX ·  Tutorials · 



Sie benötigen eine Form, einen Commandbutton und einen Timer (Name = tmrMinute)

Private lngTimer As Long
Private lngZeit As Long

Private Sub Command1_Click()
' In 15 Minuten wird geweckt
	tmrMinute.Enabled = True
	lngZeit = 15
	Me.Caption = "Noch " & (lngZeit - lngTimer) & " Minute(n)"
End Sub

Private Sub tmrMinute_Timer()
lngTimer = lngTimer + 1
Me.Caption = "Noch " & (lngZeit - lngTimer) & " Minute(n)"

    If lngTimer Mod lngZeit = 0 Then
        lngTimer = 0
        Me.Caption = lngZeit & " Minuten sind abgelaufen"
        tmrMinute.Enabled = False
    End If

End Sub

Private Sub Form_Load()
    tmrMinute.Interval = 60000  'Minutentakt
    tmrMinute.Enabled = False
End Sub

Aktualisiert: 12.02.2008, 14:10 Uhr Copyright © 2001 - 2010 by ST-software Navigation zurück  |  Navigation vorwärts  |  Zum Seitenanfang     
Ihre IP: 38.107.191.83 ·  Seite erstellt in: 0.676 Sekunden ·  Dateigröße:  2634 Bytes