When I use Design mode, everything works as expected(group box looks different and the background has a gradient.
However when I set the viewstyle programmatically, only the groupbox itself changes (there is no gradient).
I looked in the designer.vb and did not see anything that seemed to be different.
What am I missing?
Sorry to both you on this one. the problem was me being silly and copying code from one place to another not realizing that the Enum values were coming from a different place:
UltraWinStatusBar.ViewStyle.
Instead of
Misc.GroupBoxViewStyle.
This also worked correctly for me. The best option I can suggest at this point is to ensure that you have the latest hotfix installed. Can you reproduce this behavior in a brand new project with only the UltraExpandableGroupBox on the form?
-Matt
well, here is what happens in each scenario:
1) I do not set anything out of the ordinary and run it. The default style groupbox shows up and the backcolor of the groupbox is a single color (medium grayish).
2) I set .ViewStyle = VisualStudio2005 in design time and run it. The VS2005 style groupbox shows up and the background of the groupbox is a gradient (which I did not set - gray to dark blue).
3) I set the .ViewStyle = default, then programmatically in the load of the form add:
expandableGroupBox.ViewStyle = UltraWinStatusBar.ViewStyle.VisualStudio2005
and run it. The VS2005 style groupbox (header?) shows up correctly but the background of the groupbox is a single color (light gray/whitish color).
I do not have any other calls to this object in code except to set the Text = somestring.
I just tried this out and I didn't experience this problem. By itself, it doesn't really make sense that this would work at design-time and not run-time. What it sounds like is that you might be setting an appearance-related property somewhere in code that is overriding the appearance of the control, or possibly loading an ISL file for AppStylist.