Mobile Problem Solutions ,Softwares,Questions and Answers ,Errors Solutions and so More

>

Breaking

Monday, 30 April 2018

How to refresh windows form using another form without closing in C#

How to refresh windows form using another form without closing in C#

 In fIrst form



                    Form edit = new secondform();
                    secondform.FormClosing += new                 FormClosingEventHandler(this.closing_second_form);

                    edit.Show(); 

  private void closing_second_form(object sender, FormClosingEventArgs e)
        {
            //hear you code for refresh
        } 



 In second form


this.close();

No comments:

Post a Comment