How To Make Program Show After 15 mins
I have developed a sign in program for our business center machine. What I am trying to do is to have the program maximize after 15 mins from sign in. We have a 15 minute usage limit on the computer. I would like to actually have the program log the user off the computer so that they will have to log in every 15 mins.
How can I do this?
Re: How To Make Program Show After 15 mins
This code will log a user off of Windows:
Code:
Declare Function ExitWindowsEx Lib "user32" (ByVal dwOptions As Int32, ByVal dwReserved As Int32) As Int32
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
ExitWindowsEx(&H0 Or &H10, 0)
End Sub
You could use a timer and set the interval to 900,000 which is 15 minutes