i'm trying to create a timer that starts when someone clicks a button to start an online test and then ends once the time expires, heres the code. Can someone tell me whats wrong with it?
Code:Protected Sub start_timer(ByVal source As Object, ByVal e As System.EventArgs) Handles Button1.Click
Timer1.Enabled = False
Timer1.AutoReset = False
AddHandler Timer1.Elapsed, AddressOf Timer1_Elapsed
Timer1.Interval = 60000
Timer1.Start()
End Sub
