Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ visual studio 19 how to make colord button from code

//Back color
button1->BackColor = Color::Black;
//or
string StringWithColorCode = "Black";
button1->BackColor = System::Drawing::ColorTranslator::FromHtml(StringWithColorCode);

//Fore Color
button1->ForeColor = Color::White;
//or
string StringWithColorCode = "White";
button1->ForeColor = System::Drawing::ColorTranslator::FromHtml(StringWithColorCode);
 
PREVIOUS NEXT
Tagged: #visual #studio #colord #button #code
ADD COMMENT
Topic
Name
7+1 =