I have the following method that changes the language of the winform.
private void LoadLanguage(string lang)
{
foreach (Control c in this.Controls)
{
ComponentResourceManager resources = new ComponentResourceManager(typeof(MainForm));
resources.ApplyResources(c, c.Name, new CultureInfo(lang));
}
}
I call this method on the Form_Load
method. Inside the form i have a tab control but the tabPage text property does not change. On the other hand the Label
are changed correctly to the appropriate language. Any suggestions?