mercredi 2 mars 2022

Checkbox event on IEnumerable box

I'm making a c# windows form that from an IEnumerable list of item must create a checkbox and a Textbox for every item, and so far I hav made it without problem. Every textbox and every checkbox have a different name from a Name+counter of the rotation.

I would like to make an event that if I uncheck for example the Chkbox1 make the txtbox1 not editable without know How many checkbox I can have.

I'm a little bit newbie in c#.




Aucun commentaire:

Enregistrer un commentaire