One timer on the forum
Timer code:
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
For Each Center As Process In Process.GetProcessesByName("ehshell")
If Center.HasExited = True Then
Shell("shutdown -s")
Else
End If
Next
End Sub
and the Timer is started apon start
Timer1.Start
Thank you!
PS: I also cannot get the application to hide form the user so they cannot close it. What could be preventing this? I'm using
Me.Hide
This post has been edited by AmuletOfNight: 23 July 2009 - 08:32 AM

New Topic/Question
Reply



MultiQuote





|