This Visual Basic code defines a form with two controls - a button and a label. When the button is clicked, it sets the text of the second label to the string "3.45". The label's click event is also defined but contains no code.
This Visual Basic code defines a form with two controls - a button and a label. When the button is clicked, it sets the text of the second label to the string "3.45". The label's click event is also defined but contains no code.
This Visual Basic code defines a form with two controls - a button and a label. When the button is clicked, it sets the text of the second label to the string "3.45". The label's click event is also defined but contains no code.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Label2.Text = "3.45" End Sub Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.Click End Sub End Class