If I put controls in an UltraGroupBox, and set their background to Transparent, they show the wrong backcolor, that is, not the backcolor of the GroupBox (which has a gradient bacground). One of the exceptions to this is the ordinary Panel control, which then allows me to put other controls in the Panel that is filling the groupbox and all *looks* right. Obviously I'd rather not have a hack like this and an extra meaninless control on my form. This doesn't happen all the time, or in every situation.
To repro, put an UltraGroupBox on a form, set the Style to VisualStudio 2005, and then add an UltraTrackBar control and set its backcolor to Transparent. It will show the wrong backcolor. Delete the TrackBar and add a Panel to the groupbox instead, and set it's backcolor to transparent and Dock to fill, it will look right. Now add back an UltraTrackBar to the Panel and set its backcolor to transparent and it will look right where it looked wrong before.
Bob Graham
Bob,
This should work correctly if you set the BackColor on the control itself and not on the Appearance object, such as:
this.ultraTrackBar1.BackColor = Color.Transparent;
-Matt
Hi ,
i have some requirement here for GroupBox. I want to display the groupbox header text as hyperlink and clickevent for that ..
please give me the idea how to do this?
thanks,
vruk
Thanx for answering Matt,
In the Property picker, there is no BackColor on the trackbar outside of the Appearance object. Though I do see you can assign it that way in the code view manually despite Intellisense trying to stop you. Somehow I thought you got an error assigning standard BackColor property to Ultra controls that sport an appearance object.
As another method, I've found that you can set the Appearance.BackColor on the GroupBox to transparent and then controls added on top of it display correctly without setting any property on them. Why does setting an explicit Appearance.BackColor not interfere with the color applied by the ViewStyle? Still learning.
Bob