pop up

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • manjeetgrang
    New Member
    • Feb 2008
    • 36

    pop up

    i have to design a trigger kind of thing that pops up a reminder window in the VB .( Say i have a record in a table that has fields date and time(say run time) .When system time is 2 hr before that time(run time) on that date trigger shoots and pops up the the reminder window. any clue to implement such trigger in VB.

    MSG
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    You need to check the system time using a timer control at a particular time interval and pop up the message at the desired time.

    Better to hide the form and run the application from system tray.

    Comment

    • anuragshrivastava64
      New Member
      • Jan 2007
      • 66

      #3
      Originally posted by debasisdas
      You need to check the system time using a timer control at a particular time interval and pop up the message at the desired time.

      Better to hide the form and run the application from system tray.
      Try This

      Dim tmTime
      Private Sub Form_Load()

      tmTime = Format("20:48:0 0", "hh:mm:ss") ' Fetch from Recordet the time here
      Timer1.Enabled = True
      Timer1.Interval = 100
      End Sub

      Private Sub Timer1_Timer()
      If tmTime = Format(Time, "hh:mm:ss") Then
      MsgBox "aa" 'Trigger here
      End If
      End Sub

      Comment

      Working...