Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
4028
Change font on one button
posted

I'm looking to change the font of one button (so that it stands out( in my winforms app, but am having limited success. I have tried changing the font size, colour, and making it bold - the size and bold seems to work at runtime, but the app style seems to override the colour.

Is there a way of making this stick? Overriding the application style for just this one button?

Thanks.

Parents
  • 469350
    Offline posted

    Hi,

    AppStylist will override any properties that are explictly set by the style library. So if your style library is setting a ForeColor, but not a size or the bold state, then you will get the behavior you describe.

    You could turn off AppStylist on the button (by setting UseAppStylist to False, assuming it's an UltraButton).

    Or, you could set your ResolutionOrder in the Isl File to ControlThenApplication, so the control's settings take precedence over the isl.

Reply Children