Donate

Assign Hexa Color To ASP.NET Control Background Color Property

To convert hexa decimal color to Color in .NET and assign it to a control's background property, do the following:
this.lblMachinery.BackColor = ColorTranslator.FromHtml("#CCCOOO"); 

Comments

Donate

Popular Posts From This Blog

WPF CRUD Application Using DataGrid, MVVM Pattern, Entity Framework, And C#.NET

How To Insert Or Add Emojis In Microsoft Teams Status Message

Bootstrap Modal In ASP.NET MVC With CRUD Operations