zoukankan      html  css  js  c++  java
  • *****User controls in Winform can not be localized

    from:
    http://social.msdn.microsoft.com/Forums/en/netfxbcl/thread/54884c78-74a7-40b7-8a4e-44ee4abc7717

    I am using VS2008. I have a form which contains several usercontol. I am trying to localize the form to another lanuage.
    I changed the localizable property of the form to true, change the languange to the one I want to use, let's say spanish. Then change some usercontrol text.
    however, when I went back to default language, some user control works well, some bring content in spanish back.
    I checked the resx file, the controls which not work well, thier .text property not exist in the resx file generated by VS. I added them in to the resx file and the spanish resx manually, rebuild, still not work, some of the strings I added in the resx files deleted by the system automatically...

    why these usercontrols can not be localized? things happened on some buttons too

    Please help.

    ------------------------------
    A UserControl has its own Localizable and Language property in the designer, independent of the Form on which it is placed.  You will have to localize it all by itself.

    You can mark public properties that you added to the UC as localizable as well so that the form's localization alters the property value.  Easy to do:

        [Localizable(true)]
        public string SomeText { get; set; }

    Hans Passant.

  • 相关阅读:
    xargs命令
    grep命令详细解析 --非原创 原作者ggjucheng
    centos如何安装Python3
    Custom Draw 基础(转载)
    Make 命令教程(转载)
    选择Blobs (Evision)
    图像预处理(Evision)
    一个野生程序员开博日
    Ubuntu 14.04 apt源更新
    python核心编程3-13
  • 原文地址:https://www.cnblogs.com/luoyaoquan/p/2228007.html
Copyright © 2011-2022 走看看