JavaScript Editor JavaScript Editor     JavaScript Debugger

Previous Section Next Section

Main Page

Creating Checkboxes

We've already seen how to create checkboxes in the In Depth section of this chapter. You can handle checkbox CheckChanged events, which happen when the Checked property changes; here's some code from the CheckBoxes example on the CD-ROM:

Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, _
    ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged
    TextBox1.Text = "You clicked check box 1"
End Sub

You can see the results of this code in Figure 6.2.

Previous Section Next Section

JavaScript Editor Free JavaScript Editor     JavaScript Editor