RadioButton
Sintax :
Private Sub RadioButton1_CheckedChanged(sender As System.Object, e As System.EventArgs) Handles RadioButton1.CheckedChanged
TextBox1.Text = "Merah"
End Sub
Private Sub RadioButton2_CheckedChanged(sender As System.Object, e As System.EventArgs) Handles RadioButton2.CheckedChanged
TextBox1.Text = "Hijau"
End Sub
Jalankan tekan F5, lalu klik salah satu radiobutton tersebut, misal dipilih radiobutton hijau maka hasilnya seperti dibawah gambar :