private void checkBox1_Click(object sender, System.EventArgs e)
{
// The CheckBox control's Text property is changed each time the
// control is clicked, indicating a checked or unchecked state.
if (checkBox1.Checked)
{
checkBox1.Text = "Checked";
}
else
{
checkBox1.Text = "Unchecked";
}
}