I would like to activate another application when the time key in by user has met. I going to have two textbox for Hour and Minute. Anyone can help me with that? Thanks a lot.
Printable View
I would like to activate another application when the time key in by user has met. I going to have two textbox for Hour and Minute. Anyone can help me with that? Thanks a lot.
first I'll convert the hours and minutes to minutes.
[Edited by dimava on 09-19-2000 at 11:04 PM]Code:'Set your timer interval to 1000
'and make your timer enabled = false
Dim intMinutes As Integer
Dim intTimer As Integer
Private Sub cmdOK_Click()
On Error Resume Next
intMinutes = txtHours.Text * 60
intMinutes = intMinutes + txtMinutes.Text
txtMinutes.Enabled = False
txtHours.Enabled = False
Timer1.Enabled = True
End Sub
Private Sub Timer1_Timer()
intMinutes = intMinutes + 1
If intTimer = intMinutes Then
End
End If
End Sub
Thanks for replying. Well, sorry, I never mentioned something else. Would it be better to check with the user time against system time?
My idea was to convert the user time to "hh/mm" format and get system time in "hh/mm" format. Compare both of them and activate the application when time meet.