Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Designer auto assigning bogus string resource values
 

Designer auto assigning bogus string resource values

Hi All.

We are experiencing weird behavior from the VS2005 designer. It seems that at random, the designer generated code will assign a global:: resource string to a text property of a control. We see this happening when the text property has no default value.

In the designer.cs file, it looks like:

this.m_multiWpToSpinCtrl.FormatString = global::TheNameSpace.Strings.Help_ConvoyDialog_Details;

We are seeing this now in many of our dialogs, but in our previous release this didn't happen. Does anyone know what is causing this? Could we have set some property or setting on the project that causes the designer to stick in these global:: resource strings?

Help!

flyte  Wednesday, June 13, 2007 3:03 PM
(wild guess) did you set the Localizable property to true?
timvw  Wednesday, June 13, 2007 9:35 PM
Yes localizable is set to true, and it needs to be because we need to support both french and english. Even with this setting, I don't know why it is arbitrarily setting a control's Text property to this global:: string..
flyte  Friday, June 15, 2007 10:27 PM

You can use google to search for other answers

Custom Search

More Threads

• IList Interface Implementation
• Please Help !!!
• Adding Catogories to ToolBox
• How to Create An OnError Event
• Form Designer Gone Wild
• How to add a user control from the current project to the toolbox?
• Mysterious disappearing buttons
• ControlX could not be set on Property 'Items'
• Color properties in Visual Studio 2008 Windows Forms Designer
• .NET Magic TabControl Help