Solved

Convert color to Uint32

Posted on 2004-08-26
3
696 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

759 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

17 Experts available now in Live!

Get 1:1 Help Now