1//Back color
2button1->BackColor = Color::Black;
3//or
4string StringWithColorCode = "Black";
5button1->BackColor = System::Drawing::ColorTranslator::FromHtml(StringWithColorCode);
6
7//Fore Color
8button1->ForeColor = Color::White;
9//or
10string StringWithColorCode = "White";
11button1->ForeColor = System::Drawing::ColorTranslator::FromHtml(StringWithColorCode);
12