Solved

Convert color to Uint32

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

773 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