How can i make my program run, and let the computer run as normal until a certain time when it displays a dialog box.
Eg at 6:00PM everyday, it shows form1 saying: 'It's Internet Time'
Printable View
How can i make my program run, and let the computer run as normal until a certain time when it displays a dialog box.
Eg at 6:00PM everyday, it shows form1 saying: 'It's Internet Time'
Hi,
Try a timer (on a hidden form) every minute that checks for the appropriate time and if the condition is true then... display your window.
Your your App is rather large, than you could make a small program to do all of the time checking and when it's time, it uses the Shell statement to open your App.
Code:Private Sub Form_Load()
Form1.Visible = False
Timer1.Interval = 10000
End Sub
Private Sub Timer1_Timer()
If Time = #6:00:00 PM# Then
MsgBox "It's Internet Time"
End If
End Sub
you could also use an api, like find window, or find window handle(I odnt know what they are called)
to launch the dialup box
the title bar of mine is
"Connect To"
ok, forgot my last post, i am not even sure if it will work...