I am currently doing this one by one: to tidy them
//created on the form1
textboxs[0] = textbox0;
textboxs[1] = textbox1;
textboxs[2] = textbox2;
textboxs[3] = textbox3;
Is there a way to convert it to the below somehow?
for (int i = 0; i < KSy; i++) //kisi sayısı
{
// getting the i as code (not variable)
textboxs[i] = textbox+i ;
}
update: this is what i wanted to do : Find control by name from Windows Forms controls
everyone talks about reflection . i coudnt make reflection work