Adding code to the click event
Public Class FrmHello Private Sub FrmHello_Load(sender As Object, e As EventArgs) Handles MyBase.Load Me.BackColor = Color.Beige Me.Text = "hello out there!" Me.LblGreetings.Text = "Greetings earthlings" End Sub Private Sub GoRed(sender As Object, e As EventArgs) Handles BtnRed.Click, BtnBlue.Click Me.BackColor = sender.backcolor Me.LblGreetings.Text = sender.text End Sub End Class
To do: