Originally posted by remiller1
Here is the code EXACTLY as it appears on the form:

Private Sub Timer1_Timer()

Timer1.Enabled = True
Timer1.Interval = 1
Label1.Caption = Format(Time, "HH:MM:SS")
If Text1.Text = Label1.Caption Then
Call ExitWindowsEx(1, 0)
End If

End Sub

still doesn't work, there is obviously something that I am overlooking that is holding this up.
I don't feel like the If statement is good...
If Text1.Text = Label1.Caption Then ???
Does Text1 contain a time to shutdown windows?
If so, try:
If Label1.Caption = Text1.Text Then

I think that is it...