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
560
NA generates non-working code for group boxes (2008.2 latest Fix)
posted

Hi out there,

my NA generates this code after each modification on the UserForm and I don't know why:

            //
            // ultraGroupBox1
            //
            appearance2.BackColor = System.Drawing.SystemColors.Control;
            ApplyResources(appearance2.FontData, "appearance2.FontData");
            ApplyResources(appearance2, "appearance2");

            appearance2.ForceApplyResources = "FontData|";
            this.ultraGroupBox1.Appearance = appearance2;

This is created within the InitializeComponent Methode. The ApplyResources will not compile, this does not exist for an plain UserForm.

Is there an fix for this?

 

Thanks,

Frank

Parents
No Data
Reply
  • 37774
    posted

    Frank,

    I'm pretty sure that this has been reported as a bug, so you should contact Developer Support so that you can be notified of a release.  As to how to fix it, I know it's rather annoying, but you need to add "resources." before the ApplyResources call in order to get that to work.  I also think that this only happens when you have the Localizable property of the Form/UserControl set to True.

    -Matt

Children