Author: MagianCreative | Posted on: 4/4/2010 3:54:58 PM | Views : 239

Control[] ControlArray = new Control [5]; ControlArray[0] = ltlPost1; ControlArray[1] = ltlPost2; ControlArray[2] = ltlPost3; ControlArray[3] = ltlPost4; ControlArray[4] = ltlPost5; for (int i = 0; i < 5; i++) { ControlArray[i].text = "Please work."; }
I am not sure why this code does not work.  Typing ltlPost1.Text works, but after loading the controls into an array I cannot seem to access the Text property.

...

Go to the complete details ...