Custom Search

Thursday, January 29, 2009

C# CONTROL CHECKBOX

INTRODUCTION:-
A check box is a control that makes a statement true or false. To perform this validation, this control displays a small square box that the user can click. To start, the square box may be empty . If the user clicks it, a check mark appears in the square box . If the user clicks a check box that has a check mark in it, the check mark may be removed. When the square box is empty *, the statement is false. When the square box is filled with a check mark T, the statement is true.
To let the user know what the check box control represents, the control is accompanied by a label that displays the statement.
To create a check box control, you can use the CheckBox class that is implemented by the CheckBox control of the Toolbox.
TO ACTIVATE THE CHECK BOX CODING:-
if(checkbox1.Checked==true)
{
Messagebox.Show("CHECKBOX1 ACTIVAT");
}
else
{
Messagebox.Show("CheckBox2 Activate");
}

No comments:

Post a Comment