How to translate HTML hexadecimal color to RGB Color in C#

1 Answer

0 votes
namespace WinFormsApp1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        
        private void button1_Click(object sender, EventArgs e)
        {
            Color color = ColorTranslator.FromHtml("#FFAA90");

            label1.BackColor = color;
        }
    }
}




/*
 * run:
 *
 * 
 * 
 */

 



answered Aug 15, 2023 by avibootz

Related questions

1 answer 246 views
1 answer 68 views
1 answer 67 views
1 answer 79 views
1 answer 173 views
...