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
325
Overriding UltraLabel Font at runtime
posted

We are using AppStylist in our application. At runtime, creating controls dynamically, I am trying to change the font for the UltraLabel like this.

this.Font = new System.Drawing.Font("Ariel", 8.5F, FontStyle.Regular);

This works as expected on Windows XP. It doesn't work on Windows Vista. It works for Bold, Underline and Italics but it does not change the Font on the Vista Machine. The fonts used are installed on both machines.

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    It's hard to guess without knowing what your application style is doing, but the fact that it is specific to the operating system indicates it may be related to Themes.

    Does your isl file turn off themes? If not, you may want to look into doing that. When you create a new isl file, you are prompted to turn off themes, because otherwise, some appearances will not work since the theming will override them.

    You may also want to check the UseOsThemes property on the label.

Children