I have labels and their name like label1,label2,... etc. and I know how to visible label like label1.visible = true
But what I want to do is make some of them visible with other name like the code below
for (i = 0; i < ceksayisi*2; i++)
{
num = i;
labelname = "label" + num;
labelname.visible = true;
}
The code gives me 'string' does not contain a definition for 'visible' and no extension method 'visible' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)