Wrong entries in forms designer for localized vb app

2 posts, 0 answers
  1. Roberto Wenzel
    Roberto Wenzel avatar
    41 posts
    Member since:
    Sep 2012

    Posted 07 May 2009 Link to this post

    Hello again,
    I am using Visual Studio 2008 for a Visual Basic project together with RadControls for WinForms Q1 2009.
    My app is localisable and I have two resource files called "UiSettings.en-GB.resx" and "UiSettings.resx".
    When adding a rad control to my form, lets say a RadGroupBox (but the problem occurs also with a TabStrip) the following entries are added to the forms designer:
    "Me.radgrb_ConnAcrobat.FooterImageKey = Global.COACH.UiSettings_en_GB."
    "Me.radgrb_ConnAcrobat.HeaderImageKey = Global.COACH.UiSettings_en_GB."

    including the points at the end, where COACH is the namespace of my app.
    The error message is "UiSettings_en_GB is no member of COACH"

    I can manually delete the entries but they appear again after compiling.
    Can't  work with all these error messages.
    Could you please help?
    Thanks in advance
    Roberto Wenzel
  2. Mike
    Admin
    Mike avatar
    640 posts

    Posted 08 May 2009 Link to this post

    Hi Roberto Wenzel,

    Other customers have reported similar issues with any  controls when used within applications with localized resources, if in the resource file appear any resource strings that are empty (""). Please review the you resource files and remove any empty strings. If those resource entries are essential to your app, you can consider replacing the values with space (" ") instead empty string.

    This problem is related to Visual Studio, in localized applications, and appears for any custom controls that have string properties, that have empty string value, which is not defined as its default value.

    For example, the following control would generate the same error if it is added to your form:
    public class CustomControlTest: Button 
        { 
            private string badProperty = ""
     
            public string BadProperty 
            { 
                get { return badProperty; } 
                set { badProperty = value; } 
            } 
        } 

    Let me know if can help with anything else.

    Regards,
    Mike
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top