VB Timer Example

 

VB TIMER EXAMPLE

VB CODE IS -



Private Sub cmdClearPrintMsg_Click()
    Cls
End Sub

Private Sub cmdStartTimer_Click()
    Timer1.Enabled = True
    Timer1.Interval = Val(txtInterval.Text)
End Sub

Private Sub cmdStopTimer_Click()
    Timer1.Enabled = False
End Sub

Private Sub cmdClearInterval_Click()
    txtInterval.Text = ""
End Sub

Private Sub cmdClearMsg_Click()
    txtMsg.Text = ""
End Sub

Private Sub Timer1_Timer()
    Print txtMsg.Text
End Sub


Comments

Popular posts from this blog

Computer Mcq Part 1 (1-50)

Computer MCQ Part 4 (151-200)

Computer MCQ Part 3 (101-150)