i'm writing a program in C# , which contains a dozen toolstrips and each one contains a toolstriplabel :
toolstriplabel1 toolstriplabel2 toolstriplabel3 . . . toolstriplabel11 toolstriplabel12
i want to change each ones text with a "for" loop , how can i do that?? i can use "if" with other variables to meet this , but i want to avoid the dozen "if"s i have to write. How Can i use a "for" loop with toolstriplabel's , text property? i tried using this code , it doesn't work :
for (int r = 0; r < NumGraphs; r++)
{
toolStripLabel+"i".text=...
}