a question about checkboxes ? help please ...
-
hi all, i have 16 checkboxes in a form. (4 in a row and total 4 rows = 4x4) if any one checkbox is checked in a row, i want to disable others. how can i do this ?
Use DataBindings property. Best regards, Alexey.
-
hi all, i have 16 checkboxes in a form. (4 in a row and total 4 rows = 4x4) if any one checkbox is checked in a row, i want to disable others. how can i do this ?
Hi! Nothing magic about it: Just set the
Enabled
property of the CheckBoxes you want disabled tofalse
. Regards, mav -- Black holes are the places where god divided by 0... -
Use DataBindings property. Best regards, Alexey.
-
how do i use databindings for checkbox1, checkbox2, checkbox3, checkbox4 ? (if one is checked, then others must be disabled.) would you please write a simple code for this ?
-
hi all, i have 16 checkboxes in a form. (4 in a row and total 4 rows = 4x4) if any one checkbox is checked in a row, i want to disable others. how can i do this ?
i think this could be worked CheckBox[] ch1 = new CheckBox[] { checkBox1, checkBox2, checkBox3, checkBox4 }; { for (int x = 0; x < 4; x++) if (ch1[x].Checked) { foreach (CheckBox ch in ch1) { if (ch.CheckState == CheckState.Unchecked) ch.Enabled = false; } } }
-
hi all, i have 16 checkboxes in a form. (4 in a row and total 4 rows = 4x4) if any one checkbox is checked in a row, i want to disable others. how can i do this ?
-
hi all, i have 16 checkboxes in a form. (4 in a row and total 4 rows = 4x4) if any one checkbox is checked in a row, i want to disable others. how can i do this ?
-
The best way of doing this is to use radio buttons instead of checkboxes. That is what radio buttons are for. Roy.