This code defines a class called Form1 with a private subroutine called Button1_Click that handles clicks on a button. When the button is clicked, it sets the text of Label1 to the current time and sets the text of Label2 to the current date.
This code defines a class called Form1 with a private subroutine called Button1_Click that handles clicks on a button. When the button is clicked, it sets the text of Label1 to the current time and sets the text of Label2 to the current date.
This code defines a class called Form1 with a private subroutine called Button1_Click that handles clicks on a button. When the button is clicked, it sets the text of Label1 to the current time and sets the text of Label2 to the current date.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Label1.Text = TimeString Label2.Text = DateString End Sub End Class