home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmy2k
- BackColor = &H00FF00FF&
- Caption = "Y2K Countdown!!"
- ClientHeight = 2835
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 4950
- Icon = "y2k.frx":0000
- LinkTopic = "Form1"
- ScaleHeight = 2835
- ScaleWidth = 4950
- StartUpPosition = 3 'Windows Default
- Begin VB.Timer tmry2k
- Interval = 1
- Left = 0
- Top = 2400
- End
- Begin VB.Image imgy2k
- Height = 1920
- Left = 0
- Picture = "y2k.frx":030A
- Stretch = -1 'True
- Top = 1440
- Width = 4920
- End
- Begin VB.Label lblmdy
- Alignment = 2 'Center
- BackColor = &H00FF00FF&
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 18
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H8000000E&
- Height = 375
- Left = 0
- TabIndex = 1
- Top = 0
- Width = 4935
- End
- Begin VB.Label lbly2k
- Alignment = 2 'Center
- BackColor = &H00FF00FF&
- BeginProperty Font
- Name = "Arial Black"
- Size = 18
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H0000FFFF&
- Height = 1575
- Left = 0
- TabIndex = 0
- Top = 480
- Width = 4935
- End
- Attribute VB_Name = "frmy2k"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub tmry2k_Timer()
- Dim mo As Integer
- Dim mi As Integer
- Dim ho As Integer
- Dim se As Integer
- Dim da As Integer
- mo = 12 - Month(Now)
- ho = 24 - Hour(Now)
- se = 60 - Second(Now)
- If Minute(Now) = 60 Then
- mi = 0
- End If
- If Minute(Now) <> 60 Then
- mi = 60 - Minute(Now)
- End If
- If Month(Now) = 8 Then
- da = 31 - Day(Now)
- End If
- If Month(Now) = 9 Then
- da = 30 - Day(Now)
- End If
- If Month(Now) = 10 Then
- da = 31 - Day(Now)
- End If
- If Month(Now) = 11 Then
- da = 30 - Day(Now)
- End If
- If Month(Now) = 12 Then
- da = 31 - Day(Now)
- End If
- If ho <> 1 Then
- lbly2k = mo & " months " & ho & " hours " & da & " days " & mi & " minutes " & se & " seconds until "
- End If
- If ho = 1 Then
- lbly2k = mo & " months " & ho & " hour " & da & " days " & mi & " minutes " & se & " seconds until "
- End If
- lblmdy = Month(Now) & "/" & Day(Now) & "/" & Year(Now)
- End Sub
-