vendredi 8 décembre 2017

linq query to generate a enumeration of checkbox on my form

I have a WinForm where a Groupbox holds a bunch of Checkbox controls. One of the Checkbox controls is special, when pressed it needs to uncheck all the others and disable them.

I thought a Linq query would do the trick for me, that I'd just loop through the Linq results calling .Checked = false and .Enabled = false

I don't know how this would be constructed though, so that it would only look to find the checkboxes within the Groupbox, or where the checkbox name is like 'chkbox_%'




Aucun commentaire:

Enregistrer un commentaire