在写 Form 多语言时 我知道 怎么写
但是如果
override onload(eventarg e)
{
    lable1.text="hello";  //英文时
    lable1.text="你好";//中文时
}
这个要怎么写 所有字符串都要在Resources中,不要硬纵编码.怎么做
在Form多语言时 VS会把  en.resx zh-cn.resx 字符写在其中
还有我在看resx文件时有个Culture 属性  也看到ResourcesManager中用到这个属性做参数
是不是可以在一个resx文件中写入多种语言字符呢
如果 有谁看明白 我写的给我讲讲吧 谢谢了

解决方案 »

  1.   

    google一大把http://dev.yesky.com/msdn/182/2412682.shtml
      

  2.   

    国际化问题  用资源文件  google吧
      

  3.   

    我现在 是写在Resources中的啊 ,我只有一个resources文件 怎么做多语言,各位  回复别给一句话可以吗,
    给个例子什么的,我第一次写多语言啊,
    那个给Link的 ,那是Web不是Form啊  
      

  4.   

    配置资源文件如: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");
        
      }
      }