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 KandasamyRank #2,151 · 661 reputationPosted Mar 19, 2009, 11:30 PM EDT
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;
}
Sateesh ArvetiRank #96 · 22.3K reputationPosted Mar 19, 2009, 11:31 PM EDT
On Checked change event of Allchkbox .if Allchkbox is checked than make Enabled property of remaining chkboxes to false.
Ryan AlfordRank #1,411 · 1.2K reputationPosted Mar 20, 2009, 8:05 AM EDT
private void chkAll_CheckedChanged(object sender, EventArgs e){ checkBox2.Enabled = !chkAll.Checked; checkBox3.Enabled = !chkAll.Checked;}