By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
Public Class Form1 Inherits System.Windows.Forms.Form Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged If CheckBox1.Checked = True Then Label1.Text = "Timer Enabled" Label2.Text = "Timer Enabled" Timer1.Enabled = True Else Label1.Text = "Disabled Timer" Label2.Text = "Disabled Timer" Timer1.Enabled = False End If End Sub Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Label2.Text = Date.Now() End Sub End Class
Dig Deeper on Win Development Resources
Related Q&A from John Robbins
What is a JAD session? This term is referred to often in job postings and seems like some kind of brainstorm you carry out with a client to define IT...continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.