I has 2 form which is Form1 and Form2. In Form1, I has a button which will open Form2 in button click. In Form2, it use to do some setting for the label text in Form1. When close the form2, the label text in Form1 will update base on the setting, but I can make the label text update. Below is the code for update the text for label in Form1. I'm hardcode the text to simulate the situation.
Form1
public void languageChange()
{
labelControl5.Text = "AAAAAA";
labelControl5.Invalidate();
labelControl5.Update();
labelControl5.Refresh();
Application.DoEvents();
}
In form2, I has below code to fire languageChange function in Form1.
private void innoLanguage_FormClosed(object sender, FormClosedEventArgs e)
{
Main_new main = new Main_new();
main.languageChange();
}
It has call the function in the Form1 when form2 is close but it not update the label text.
I feel I make a mistake but I can't figure out. How I can make this work, please help.