i have three check boxes on my windows form in which one is (All chkbox)
if i click the Allchkbox the remaining two chkboxes sholuld be visible and but they sholud be unable to select
(may they should go dim and unable to be selected .. )
plss help me on this
thanks,
pramod.
Vimal KandasamyPosted Mar 20, 2009, 3:30 AM
add the following code in Allchkbox's checkedchanged event
and initially set both check box visibility as false
private void Allchkbox_CheckedChanged(object sender, EventArgs e)
{
checkBox2.Visible = true;
checkBox3.Visible = true;
checkBox2.Enabled = false;
checkBox3.Enabled = false;
}
Ryan AlfordPosted Mar 20, 2009, 12:05 PM
Sateesh ArvetiPosted Mar 20, 2009, 3:31 AM
On Checked change event of Allchkbox .if Allchkbox is checked than make Enabled property of remaining chkboxes to false.