Results 1 to 3 of 3

Thread: Time activated Program

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Location
    Singapore
    Posts
    3

    Smile

    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.

  2. #2
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    first I'll convert the hours and minutes to minutes.

    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
    [Edited by dimava on 09-19-2000 at 11:04 PM]
    NXSupport - Your one-stop source for computer help

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Location
    Singapore
    Posts
    3
    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width