Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Convert color to Uint32

Posted on 2004-08-26
3
Medium Priority
?
725 Views
Last Modified: 2009-12-16
How can I convert a color to uInt32
0
Comment
Question by:moralju
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
gillgates earned 750 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

618 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