I have a code like this:
MyUserControl[] myControl = new MyUserControl[10];
when Form load:
for( int i = 0; i < 10; i++ )
{
myControl[i] = new MyUserControl();
myControl[i].label1.Text = "Title";
this.Controls.Add ( myControl[i] );
}
now it is show normally.
after then press button like below:
private void Button1_Click(object sender, EventArgs e)
{
myControl[0].label1.Text = "Other Title";
}
When i see the debug mode,value was added normally, but lable1 text not show "Other Title".
So, I try to below method, but not work anything.
myControl[0].label1.Update();
myControl[0].label1.Invalidate();
myControl[0].label1.Refresh();
Please, kindly advise.