Hi,
I am trying to figure out how to set the border colour of the UltraCombo. In certain conditions when the user selects the control i want it to change the border colour to red.
Setting the UltraCombo.Appearance.BorderColor = Color.Red doesn't change the border color of the control.
Is there a specific property that needs to be set?
Cheers,Nathan.
Hi Nathan,
There are a number of factors at work here, including the DisplayStyle property. But my guess is that the control is themed by default. Theming is all-or-nothing. So if Themes are on, then whole control is drawn themed and you can't change any individual colors of any of the themed elements.
So you probably have to set UseOsThemes on the control to false in order to change the border colors.
Hi Mike,
Yes we are styling the control, but setting this property on the UltraTextEditor after the style has been applied works fine. After reading your comment about the DisplayStyle property i changed it to the various values only some of them seem to use the border color property, we are using the Default display style which i'm guessing is the standard value.
I tried setting the border color to red in a test project with UseOsThemes set false and DisplayStyle set to Default, but the border colour remained the default blue colour. Is there a property that the Standard/Default display style uses for its borders or is what i'm asking not possible?