我发现的最简单的例子: Windows Mobile Globalization in Visual Studio 除了在ReloadForm方法中,不需要移除和处理控件,只需要改变翻译和位置即可。实际上,这个示例不仅适用于translaten,而且适用于解决方案感知处理,因为如果您已添加到resx文件中,它将翻译和位置更改。
private void SetCaptions()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
this.SuspendLayout();
for (int i = 0; i != Controls.Count; i++)
{
//controls[i].Dispose();
resources.ApplyResources(Controls[i], Controls[i].Name, Program.Culture);
}
resources.ApplyResources(this, "$this", Program.Culture);
this.ResumeLayout(false);
}
我定制,对于我的项目,让我知道如果您有任何问题或更好的解决方案,谢谢。