473,508 Members | 2,477 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Converting Hex colors in to vb.net colors

Stu
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
Nov 21 '05 #1
1 2004
"Stu" <s.****@cergis.com> 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/>

Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
1797
by: Krista Bailie | last post by:
I'm sure this is so easy that it will hurt for anyone to read it, but I really need some direction. I'm trying to create a color chart (RGB) that shows steps between two different colors as...
22
5441
by: Keith MacDonald | last post by:
Hello, Is there a portable (at least for VC.Net and g++) method to convert text between wchar_t and char, using the standard library? I may have missed something obvious, but the section on...
2
2384
by: AES/newspost | last post by:
In my (limited) experience, downloading a lengthy PDF file (a users manual or a lengthy report) from a web site can take a fair amount of time even on a fast connection, and readable content...
4
1819
by: Jozef | last post by:
Hello, I have forms in my database that use grey as the back color. When I convert them to XP, They all look goofy. The grey becomes two tone. The grey used in the controls are dark, the grey...
2
5741
by: Asbjørn Ulsberg | last post by:
Hi. I'm trying to convert Brady Hegberg's great RTF2HTML VB 6.0 module to C#. I've managed to convert the VB code to VB.NET, which gave me the following code: Option Strict On Option...
2
1706
by: TomHL | last post by:
Hello all, I need to do an application that takes a Bitmap object and convert it to one of the color tables below: 1. 16 colors. 2. 256 colors. 3. 24bpp. I read about lockbits and unsafe...
0
1116
by: josemarciano | last post by:
Hi. In an ASP.NET page, I am converting from a TIFF picture, that has a palette of 2 colors (1 bit), to a GIF, using the the code below, and it works fine. The problem is that the GIF always...
3
1618
by: Filippo Bettinaglio | last post by:
Using C# 2005 How can I load a 24bit .BMP image and convert it in a 8bit BMP, and save the new one on disk? Many Thanks, Filippo
1
6600
by: dishal | last post by:
Can anyone help me please? How do I convert these codes to launch from a JFrame instead of a Java Applet? A simple program where the user can sketch curves and shapes in a variety of...
0
7231
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7336
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7066
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7504
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5643
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5059
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4724
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3214
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3198
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.