BUG: The Resx file is not updated when you remove a control (316643)
The information in this article applies to:
- Microsoft Visual Studio .NET (2002), Enterprise Developer Edition
- Microsoft Visual Basic .NET (2002)
- Microsoft Visual C# .NET (2002)
- Microsoft Visual Studio .NET (2003), Enterprise Developer Edition
- Microsoft Visual Basic .NET (2003)
- Microsoft Visual C# .NET (2003)
- Microsoft Visual J# .NET (2002)
- Microsoft Visual J# .NET (2003)
- Microsoft Visual Studio .NET (2002), Academic Edition
- Microsoft Visual Studio .NET (2002), Enterprise Architect Edition
- Microsoft Visual Studio .NET (2002), Professional Edition
- Microsoft Visual Studio .NET (2003), Academic Edition
- Microsoft Visual Studio .NET (2003), Enterprise Architect Edition
- Microsoft Visual Studio .NET (2003), Professional Edition
- Microsoft Visual Basic 2005 Express Edition
This article was previously published under Q316643 SYMPTOMS If you add a control to a form and then localize it, some
strings may persist when you delete and replace the control with a control of
the same name. You may see strings that are intended for the deleted version of
the control that are overwriting the text property value that is entered in the
design environment when the solution is run. CAUSE When you localize a control, strings are placed in the
Form1.resx file or other localized .resx files. When the control is removed,
these strings remain in .resx files. If you place a control with the same name
back on the form, these strings are still referenced to the control by way of
the control name. At runtime, these strings are retrieved from the .resx files
and they overwrite any strings that were entered in the design environment. If
the added control has a different name, the residual strings are not a problem.
RESOLUTION If you delete a control that you have localized and you
want to add a new control, make sure to give the new control a different name.
If you first create a control called Button1, you localize it, and then you
delete it, you need to add a control with a different name, such as Button1A.
You can also try returning the Language property of the form to (Default) before you delete the control. STATUSMicrosoft has confirmed that this is a bug in the Microsoft
products that are listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 1/20/2006 |
---|
Keywords: | kbvs2005applies kbvs2005swept kbvs2002sp1sweep kbbug kbLocalization kbpending KB316643 |
---|
|