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

C++
1

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);
Posted by: Guest on August-10-2021

Code answers related to "c++ visual studio 19 how to make colord button from code"

Browse Popular Code Answers by Language