C#Winform程序中现在想实现一个中英文切换功能,现在毫无头绪,望各位大侠不吝赐教……    

解决方案 »

  1.   

    增加一个资源文件 在fromload中判断系统指定不同的资源文件就行
      

  2.   

    http://topic.csdn.net/u/20081020/16/4440219e-b4a8-41ee-85a3-58ac45870f72.html
    参考下
      

  3.   

    配置资源文件如:Resource1.zh-CN.resx,Resource1.zh-TW.resx,Resource1.en-US.resx。
    public static void SetLang(string lang, Form form, Type formType)
      {
      System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(lang);
      if (form != null)
      {
      System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(formType);
      resources.ApplyResources(form, "$this");
        
      }
      }
    Visual Studio International Pack 包含一组类库,该类库扩展了.NET Framework对全球化软件开发的支持  
      

  4.   

    做个BaseForm  窗体都从baseform继承下来 
    然后在baseform的初始化里面 吧字符串替换掉
      

  5.   

    顶,我以前做过一个多语言切换的程序就是这么干的。
    在BaseForm里引用资源文件。