panel control does not maintain original background color

  • Thread starter Thread starter Carlos
  • Start date Start date
C

Carlos

Hi all,

I do have a form with the puffpeach background color, then I placed a panel
over it to include its controls, and
suppossedly maintaining the same background color. However, when I debug the
app in the emulator, the form
appears white. Is there any reason for this?

Thanks in advance.

Carlos.
 
You mean PeachPuff? I changed the background colour of a form to that
colour, added a panel (Magenta background) and a button (grey) to the panel.
It all looks fine (on emulator with CF RTM and on a PPC with SP1). Note that
if you don't explicitly give the panel a background color it will appear
white.

If you are still having troubles, create a small reproducible sample so we
can help you further. In either case, I would try it on a real device and
with the latest service pack: 3.

Cheers
Daniel
 
I had the same problem!

In Visual Studio 2003 even if you change the Backcolor property on the list
of properties available on the Windows Forms Designer, it doesn't add the
necessary code in the InitializeComponent() method. You have to add the line
panel1.BackColor = ...

in the constructor.
 
Thank you Paulo! I knew that I was not dreaming.. changing that property did
it for me too.
 
Back
Top