End Google Ads 201810 - BS.net 01 --> Dear All --

I have a form in c#, consisting of say 1 combobox and 4 textboxes. Combobox will have values from 1 to 4 and the name of the textboxes be txt1, txt2,.. txt4. Depending on the value chosen in combobox, the txtboxes should hide or show.

Is something like the below code possible.
for (int i = 0; i < n; i++)
{
(TextBox)("txt" + i).Hide;
}

or is there some other better way of doing the same.

Sorry, if the subject name is not in lines with the body/matter.

cheers