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
Vruk,
This isn't really the same topic as the original post, so in the future it would be a good idea to start a new topic for your question.
There isn't any built-in functionality to show a hyperlink in the groupbox header. One approach would be to use a CreationFilter to put an element in there that would display as a hyperlink; I'm not sure how easy this would be with a FormattedLinkEmbeddableUIElement, though. Another, much easier, option would simply be to position an UltraFormattedLinkLabel (or .NET LinkLabel) directly above the header of the group box and simply handle the clicking of that control.