PC Review


Reply
Thread Tools Rate Thread

Converting Hex colors in to vb.net colors

 
 
Stu
Guest
Posts: n/a
 
      8th Aug 2005
Hi,

How do you convert web colors (hex) in to rgb values for use in asp.net
(vb)?

I know #ff0000 is Color.Red in .Net - how do I get the rgb color values for
something like '#AD5511'?

Thanks in advance,
Stu


 
Reply With Quote
 
 
 
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      8th Aug 2005
"Stu" <(E-Mail Removed)> schrieb:
> How do you convert web colors (hex) in to rgb values for use in asp.net
> (vb)?
>
> I know #ff0000 is Color.Red in .Net - how do I get the rgb color values
> for something like '#AD5511'?


Check out 'ColorTranslator.FromHtml'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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: Color laser printer prints colors much darker than screen colors John McGaw Computer Hardware 0 27th Jan 2009 01:24 AM
Re: Color laser printer prints colors much darker than screen colors John McGaw Computer Hardware 0 24th Jan 2009 10:24 PM
Worksheet formatting (fill colors & text colors) disappeared sweettooth Microsoft Excel Misc 2 24th Jun 2008 01:16 AM
Outlook 2007 Calendar - categories colors vs automaticformating colors Sebastian Deac Microsoft Outlook Discussion 1 20th Dec 2007 08:27 AM
Windows Mail Stationery Stopped Working, Also Font colors and background colors... John Hanley Windows Vista Mail 4 5th Jun 2007 01:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:49 AM.