1

I have a customer textbox that inherits from the standard textbox. This textbox has a string property for 'cue', which displays a short message in the textbox in light gray when there's no text. This custom control is in a separate assembly.

Now I want to localize my forms, and these forms include my custom textbox. The problem is that the 'cue' property is not being saved in the form's resx file for the specific language.

How can I set up Visual Studio to save the text in my 'cue' property in the resx files?

Ivan-Mark Debono
  • 15,500
  • 29
  • 132
  • 263

2 Answers2

1

Problem solved by adding:

[Localizable(true)]

to the localizable properties of the custom control.

Ivan-Mark Debono
  • 15,500
  • 29
  • 132
  • 263
0

Try reading this threads, may be can help you: Storing custom properties in resx files in Compact Framework

Adding custom properties to strings in resx

Localizing ASP.NET MVC

Visual Studio use the System.Resources.ResXResourceReader and System.Resources.ResXResourceWriter to read and write resource to the resource file (.resx). To add custom columns, I think you need to provide you own ResourceReader, ResourceWriter and the editor. With that now, you can do reference.

Community
  • 1
  • 1
Benjamin RD
  • 11,516
  • 14
  • 87
  • 157