showing time out by exiting the from to users

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Arunold
    New Member
    • Jul 2014
    • 1

    showing time out by exiting the from to users

    I need to exit the form when the allowed time is over . How I do this ?
  • ambusy
    New Member
    • Aug 2014
    • 5

    #2
    with a button to click:
    Code:
    Public Class Form1
        Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
            Me.Close()
            End
        End Sub
        Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
            Timer1.Enabled = True
        End Sub
    End Class

    Comment

    Working...