Odd Groupbox Issue in .NET 2.0

  • Thread starter Thread starter Alex Clark
  • Start date Start date
A

Alex Clark

Hi All,

I've been rearranging a form I've designed in VS2005 RTM. I just dragged a
few group box controls onto a TabPage control, and most of them correctly
have a white background (the tabpage, being "XP Styled" is white).

However, one or two of them are still an unsightly shade of Color.Control.
The odd thing is that if I try and set their backcolor property to
transparent, VS ponders this for about 5s and then reports an error stating
that the control doesn't support transparent backgrounds. Clearly it does
however, as half the other group controls have a backcolor set to
Transparent!

Is this a bug?

Thanks,
Alex Clark
 
Hi,

It seems that I'd got the FlatStyle property set to system on some of them,
hence the confusion. Apparently the "system" flatstyle does not support
transparency, whereas the others do.

Thanks,
Alex Clark
 
Hi

Thanks for your information sharing.
If you want to enable the XP Styles, the controls have FlatStyle properties
should be set to System. Once we set it to System, that is to say the
System control how the control is drawn.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top