المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : BackColor issue with main form and the controls



C# Programming
05-07-2009, 11:11 PM
on a simple window form, there is a small panel, along with button and groupbox inside the panel.

When I change the main window form color (i.e. this.BackColor = Color.Red) and the main form does turn red, and also the panel and groupbox were also changed to red. HUH?

I just wanted the main form background color to be red, while the inside of the panel (and the panel itself) to remain unchanged.

How do I do that? I tried goggling and turns out no luck.

HELP!http://www.barakasoft.com/script/Forums/Images/smiley_confused.gifhttp://www.barakasoft.com/script/Forums/Images/smiley_confused.gifhttp://www.barakasoft.com/script/Forums/Images/smiley_confused.gifhttp://www.barakasoft.com/script/Forums/Images/smiley_confused.gif