Using resource strings
-
Hi, I have to keep all my labels for controls in a resource file to ensure easier translation of the program. How do I set a button's text to what is contained in a resource file, from the form designer? It's easy to set it in code but I'm sure there is a way to set it directly from the designer? Thanks...
-
Hi, I have to keep all my labels for controls in a resource file to ensure easier translation of the program. How do I set a button's text to what is contained in a resource file, from the form designer? It's easy to set it in code but I'm sure there is a way to set it directly from the designer? Thanks...
Set "Localizable" in the property window of the containing form to true. When you want to translate this form switch the language to non-standard (some specific language) and just change all captions etc. (you can change the positions of the elements if you want). At the end you will get several resource-folders with the localized versions of your resources - that's it you don't have to provide strings or whatever (of course you will have to use resource-strings for your code-driven output - msgboxes etc.)