Solved

Convert color to Uint32

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

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…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

856 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