Solved

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

Posted on 2014-02-02
11
255 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
 
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
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

707 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

18 Experts available now in Live!

Get 1:1 Help Now