This is a migrated thread and some comments may be shown as answers.

Wrong entries in forms designer for localized vb app

1 Answer 35 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Roberto Wenzel
Top achievements
Rank 2
Roberto Wenzel asked on 07 May 2009, 09:41 AM
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

1 Answer, 1 is accepted

Sort by
0
Mike
Telerik team
answered on 08 May 2009, 04:05 PM
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.
Tags
General Discussions
Asked by
Roberto Wenzel
Top achievements
Rank 2
Answers by
Mike
Telerik team
Share this question
or