Refresh mdi parent form

Last Reply 9 days ago By SUJAYS

Posted 9 days ago

I have mdi parent form in windows c# which has balance of user  which is a label.                                                                                     I have a child form in which transaction is done. It gets updated on database on save click.                                                                  I need to update my mdi parent form when the child form save is clicked. how to do it?

 

You are viewing reply posted by: SUJAYS 9 days ago.
Posted 9 days ago

Refer this code if it helps

void createNewChildFM()

{

                    fc = new MdiChildForm
                    fc.FormClosed += new FormClosedEventHandler(this.fc_FormClosed);
                    fc.MdiParent = this;

                    fc.Show();
                    handle = fc.Handle;

}

        public void fc_FormClosed(object sender, FormClosedEventArgs e)
        {
            this.LayoutMdi(System.Windows.Forms.MdiLayout.TileVertical);
            this.Refresh();

        }

 

I agree, here is the link: https://www.e-iceblue.com/Introduce/spire-office-for-net-free.html?aff_id=108