I am kind of new with vb6 and vb8. I am working on a program that has a countdown timer.
I have the code for the countdown but what I would like to do is to have it when the the countdown is done then the program will shut down. If any one can help please post somthing that is useful to me.
This is the curent code I have:
Private Sub Form_Load() Timer1.Interval = 1000 Label2.Caption = "60" End Sub Private Sub Timer1_Timer() If Label2.Caption = 0 Then Timer1.Enabled = False MsgBox ("60 secs is up, looks like your out of luck") Else Label2.Caption = Label2.Caption - 1 End If End Sub