Solved

Convert color to Uint32

Posted on 2004-08-26
3
701 Views
Last Modified: 2009-12-16
How can I convert a color to uInt32
0
Comment
Question by:moralju
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
gillgates earned 250 total points
ID: 11909855
I am not sure what you want but you could try this....

MessageBox.Show(Convert.ToUInt32(Color.Red.B.ToString() + Color.Red.R.ToString() + Color.Red.G.ToString()).ToString());
0
 
LVL 1

Author Comment

by:moralju
ID: 11921973
Convert.ToUInt32(ColorTranslator.ToOle(Color.Yellow)).ToString

I use this to set a control to a specific color..  the number for yellow here is 65535
what I want to do is set my control to a color by using
Convert.toUInt32(65535)
0
 
LVL 1

Author Comment

by:moralju
ID: 11923494
Thanks I figured it out
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now