Accessing Controls thrue the ID
Hi guys,
i have a problem ...
I started to create a webform with lots of Button and TextBoxes on it.
Now i have an array with some int values (Color-Values) and i try to change the colors of the buttons and textboxes. I know how i can change the color-property for one button i named, but i would do it automatically.
All Buttons have the ID "signal" + number
I remember VB or VBA ...
there i could use
Me.Controls("signal"+i).BackColor = "Value" //for example
I'm looking for an equal command in C#
----------------------------------------------------
for (int intI=0;intI

AdministratorRank #675 · 3.6K reputationPosted Mar 13, 2003, 5:43 PM EST
AdministratorRank #675 · 3.6K reputationPosted Mar 13, 2003, 9:17 PM EST
AdministratorRank #675 · 3.6K reputationPosted Mar 18, 2003, 11:10 AM EST
AdministratorRank #675 · 3.6K reputationPosted Apr 1, 2003, 3:01 AM EST