|
Hello,
I have problem with localization, where I don't know, whether it is a bug in Visual C# 2005 or whether I have done something wrong (I'm using the non-localized version of Visual C# 2005 with a german XP Pro).
To reproduce the problem, do the following:
1. Create a new Visual C# !!class library!! project. 2. Add a form (Form1) to the project. 3. Change the font of the form to Arial, Size 15. 4. Add a button (button1) to the form. 5. Change button1.modifier from "private" to "protected". 6. Build the project. 7. Add a second form (Form2), which is inherited from Form1, to the project. 8. Build the project. 9. Change Form2.Localizable form "false" to "true". 10. Change Form2.Language from "(Default)" to"English(UnitedKingdom)". 11. Rebuild the project. 12. Change Form2.Language back from "English(UnitedKingdom)" to "(Default)".
Now, as you can see on the button, the font of Form2 has changed to Microsoft Sans Serif; 8,25pt. If I had a backgroundimage on Form2, it would havebeendisappeared. This is caused by thefollowinglines inthefileForm2.Designer.cs: // // Form2 // resources.ApplyResources( this, "$this" ); this.BackgroundImage = null; <--- this.Font = null; <--- this.Icon = null; this.Name = "Form2"
Is this intended or a bug? If it is intended, what do I have to do, that the font setting is not changed by Visual C#?
Thanks in advance, Jens.
|