Thursday, November 18, 2010

Assign Hexa Color to .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:
1:  this.lblMachinery.BackColor = ColorTranslator.FromHtml("#CCCOOO");  


0 comments:

Post a Comment