![]() ![]() | ||
We've already seen how to create radio buttons in the In Depth section of this chapter. You can handle radio button CheckChanged events, which happen when the Checked property changes; here's some code from the RadioButtons example on the CD-ROM:
Private Sub RadioButton1_CheckedChanged(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles RadioButton1.CheckedChanged TextBox1.Text = "You clicked radio button 1" End Sub
We saw the results of this code in Figure 6.3.
![]() ![]() | ||