use the "now" object to get the current time object and store it in a variable. Then you can use a timer control with large interval to check if the stored time is 24 hours ago by comparing it again with the "now" object.
Public Class Form1
Dim startTime As Date
Dim timerA As New Timer
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
startTime = Now
timerA.Interval = (600000)
AddHandler timerA.Tick, AddressOf passed10Min
timerA.Start()
End Sub
Sub passed10Min()
Dim d As Date = startTime
d.AddDays(1)
If Date.Compare(Now, d) <= 0 Then
''24 Passed
timerA.Stop()
Else
''24 haven't Passed
End If
End Sub
End Class
every 10 minutes this code will check if 24 hours have passed since the loading of the form.