Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Help Assigning Label color from the table.

Reply
Thread Tools

Help Assigning Label color from the table.

 
 
JAPHET
Guest
Posts: n/a
 
      09-30-2004
Plz Help me how to assign label color from the datareader

I tried this it failled. Any Idea Please.

Japhet.

myLabel1.BackColor = "Color." & dr.Item("color_code")



 
Reply With Quote
 
 
 
 
Alex Homer
Guest
Posts: n/a
 
      09-30-2004
Try this:

myLabel1.BackColor = Color.FromName("the-color-name-here")

Remember to import the System.Drawing namespace


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: "Assigning" vs. "Matching" a color profile me Digital Photography 10 01-08-2010 11:46 PM
Changing font color from current font color to black color Kamaljeet Saini Ruby 0 02-13-2009 04:58 PM
assigning a value to a textbox/label control in ASP.NET Rahul Chatterjee ASP .Net 1 09-25-2008 02:04 AM
Assigning methods to objects, and assigning onreadystatechange to an XMLHttpRequest -- an inconsistency? weston Javascript 1 09-22-2006 09:33 AM
problem with assigning data from data reader to label control in web form mhnazly ASP .Net 1 10-28-2003 12:19 AM



Advertisments