Solved

How to paint the backcolor of a panel yellow using the Paint-event

Posted on 2014-02-02
11
257 Views
Last Modified: 2014-02-07
Hi,

I am looking for code to paint the backcolor yellow (color = info) of a panel through the paint-event. I use c#

Peter
0
Comment
Question by:peterkiers
  • 5
  • 4
11 Comments
 
LVL 34

Expert Comment

by:gr8gonzo
ID: 39828615
Is there a reason you don't just set the BackColor property of the panel to Color.<whatever named color you want> ?
0
 
LVL 1

Author Comment

by:peterkiers
ID: 39828894
Yes, want to do that on a devexpress panel called the grouppanel. But setting the property BackColor to Info isn't working. Peter.
0
 
LVL 1

Author Comment

by:peterkiers
ID: 39831601
I've requested that this question be deleted for the following reason:

Found another way to solve this.
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 34

Expert Comment

by:gr8gonzo
ID: 39831602
If you found a different way, please describe it here. Don't just delete the question.
0
 
LVL 1

Accepted Solution

by:
peterkiers earned 0 total points
ID: 39832251
Oke, I have chosen the DevExpress group control instead of the standard panel.
changing the back color of a GroupControl, you'll need to set the LookAndFeel.UseDefaultLookAndFeel property to false, and the LookAndFeel.Style property to Flat.

Peter
0
 
LVL 1

Author Comment

by:peterkiers
ID: 39835225
I've requested that this question be closed as follows:

Accepted answer: 0 points for peterkiers's comment #a39832251

for the following reason:

This is the right way to change the color of a groupcontrol from DevExpress.
0
 
LVL 34

Expert Comment

by:gr8gonzo
ID: 39834655
Thanks!
0
 
LVL 34

Expert Comment

by:gr8gonzo
ID: 39841293
Err... the thanks was for posting your answer. I shouldn't get points if mine wasn't the correct one.
0
 
LVL 34

Expert Comment

by:gr8gonzo
ID: 39842202
Thanks, Netminder! Sorry for the confusion. Was just trying to make sure that future people with the same problem would be able to find Peter's answer.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
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…

816 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

12 Experts available now in Live!

Get 1:1 Help Now