Mix System::Windows::Forms::TabPage ^ + int

For example I have TabPage1, TabPage2 and TabPage3.

how could I change some attribute of TabPage1, only knowing the number 1.

it should look like this, afcourse id does now work.

void somefunction(int id) {
System::Windows::Forms::TabPage^ nameee = "TabPage"+id;
nameee->ImageIndex = 2;
}

Any ideas?
Topic archived. No new replies allowed.