Panel backgroundimage disappear when EnableVisualStyle

  • Thread starter Thread starter MatsL
  • Start date Start date
M

MatsL

I have a panel with a backgroundimage with a docked transparant label. If i
enablevisualstyles the backgroudimage disappear.

Any ideas why?

// Mats
 
I can duplicate your problem. It's not a problem with the panel or enabling
visual styles. It's a problem with the label caused by setting the BackColor
to Transparent first and then setting the FlatStyle to System.

In the Propery window, if your try setting the FlatStyle to System first and
then try to set the Backcolor to Transparent, a "Invalid Property Value. This
control does not support transparent background colors." dialog will appear.

Try setting FlatStyle to another value.

Regards,
Phli.
 
Back
Top