views:

55

answers:

1

I have a situation where some of the control's string property values are automatically replaced with a variable from a resource (.resx) file in the designer file during design time.

For example, I have a form that contains a combobox. A snapshot of the code in the designer file may look something like this:

this.comboDocument.Name = "comboDocument";

this.comboDocument.Size = new System.Drawing.Size(324, 24);

this.comboDocument.TabIndex = 2;

this.comboDocument.Tag = "";

If I use the Visual Studio's (VS2008) designer to edit the form (ie, move a control by 1 pixel) and go back to the designer file, it will now look like this:

this.comboDocument.Name = "comboDocument";

this.comboDocument.Size = new System.Drawing.Size(324, 24);

this.comboDocument.TabIndex = 2;

this.comboDocument.Tag = global::JLTA.JBS.UI.Controls.Panels.Resources.ContactPanelMessages.PANEL_CONTEXT_WORD_CLAIM;

Coincidentally PANEL_CONTEXT_WORD_CLAIM's value is an empty string as well. I only noticed the problem because this caused a compile error.

Does anyone know what caused this to happen?

A: 

Hi,

I have the same problem, but I didn't found any solution yet...

m