c 2b 2b visual studio 19 how to make colord button from code

Solutions on MaxInterview for c 2b 2b visual studio 19 how to make colord button from code by the best coders in the world

showing results for - "c 2b 2b visual studio 19 how to make colord button from code"
Damián
29 Feb 2019
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