简单的就是最好的,支持楼上的syeerzy,不过这样设置会有个最长时间长度限制,超过??多少小时好像就不行了
Private Sub StartExam()
Timer1.Interval = 3600000'一个小时
Timer1.Enabled = True
Timer1.Start()
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
MsgBox("交卷时间到!")
End Sub