How to localize UserControl

I am developing a Windows application that should support several languages.

I followed the article below http://msdn.microsoft.com/en-us/library/y99d1cd3(v=vs.71).aspx to make my Windows application localizable.

Everything works fine except for usercontrols. Do I need to create user controls for each language? How to force usercontrol to inherit the Right to left property? What is the best practice?

+4
source share
1 answer

UserControls should be localized in the same way as forms ( Localizable = True , Language = ... ), you do not see localization in the designer when they are embedded in the localized form, but localization works well at runtime.

For the RightToLeft : property, select your UserControl (select the control inside it and press ESC until the main control is selected - in the properties panel you should see the name of your UserControl and type = System.Windows.Forms.UserControl ), go in the properties panel and find the RightToLeft property, in the same panel you also have the Localizable and Language property, which should be used in the same way as in Forms.

+2
source

Source: https://habr.com/ru/post/1491802/


All Articles