Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Visual Studio 2005 - Assign BackColor to button using RGB Color

Posted on 2006-04-24
4
Medium Priority
?
508 Views
Last Modified: 2008-03-17
Hi

I am trying to assign an Excel color as backcolor of a button on a Windows form using the RGB code RGB(45,67,89)
How do I do this?
0
Comment
Question by:Murray Brown
  • 3
4 Comments
 
LVL 64

Accepted Solution

by:
Fernando Soto earned 2000 total points
ID: 16525685
Hi murbro;

Like this:

    Button1.BackColor = System.Drawing.Color.FromArgb(45, 67, 89)

Fernando
0
 

Author Comment

by:Murray Brown
ID: 16525718
Brilliant. Thanks for that
0
 
LVL 64

Expert Comment

by:Fernando Soto
ID: 16525729
If you are working in C# then it will be:

    button1.BackColor = System.Drawing.Color.FromArgb(45, 67, 89);

Where:

    System.Drawing.Color.FromArgb( Red, Green, Blue)

Fernando
0
 
LVL 64

Expert Comment

by:Fernando Soto
ID: 16525736
Glad I was able to help. :=)
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses

810 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