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

Hi,

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

Peter
LVL 1
peterkiersAsked:
Who is Participating?
 
peterkiersConnect With a Mentor Author Commented:
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
 
gr8gonzoConsultantCommented:
Is there a reason you don't just set the BackColor property of the panel to Color.<whatever named color you want> ?
0
 
peterkiersAuthor Commented:
Yes, want to do that on a devexpress panel called the grouppanel. But setting the property BackColor to Info isn't working. Peter.
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
peterkiersAuthor Commented:
I've requested that this question be deleted for the following reason:

Found another way to solve this.
0
 
gr8gonzoConsultantCommented:
If you found a different way, please describe it here. Don't just delete the question.
0
 
peterkiersAuthor Commented:
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
 
gr8gonzoConsultantCommented:
Thanks!
0
 
gr8gonzoConsultantCommented:
Err... the thanks was for posting your answer. I shouldn't get points if mine wasn't the correct one.
0
 
gr8gonzoConsultantCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.