How to refresh owner form on closing of child form
hi
I have already open a form in mdiparent form. Now I open another form on click in childForm. I make some setting in the childForm.That effects my database. Now I want on closing of clildForm My parentForm updated automatically from database.
For this I am using my Code is this
//parentForm
butOpenSetting_Click(...)
{
frmchildForm objchildForm = new frmchildForm();
objchildForm.Owner = this;
objchildForm.Show();
}
//childForm
butUpdate_Click(.....)
{
this.Owner.Refresh();
//this.Parent.Refresh();
this.close();
}
but my Parent/Owner form are not refreshing.
Help me.
Thanks and Regards
Kumar Ashish
9350789189
|