I need to create an array or indexed list of system drawing colors and then set the background colors of a series of text boxes to various colors based on an integer index. Pseudo code:
System::Drawing::color BGcolors[4] = {"#FFFFFF","#FFC5C5","#60FF60","#87CEEB"};
int color = 2;
this->textbox1->BackColor = BGcolors[color];
this->textbox2->BackColor = BGcolors[1];
My code is in Visual Studio 2008, C++, Windows Form Application. What is the proper syntax to add this code to the Form1.h file?