How to Refresh the old form from current form?

Hi,
I have got two forms form1 and form2. In frm1 there is a button and a listview. If the button is clicked it opens a form2 and I did this using

form2 frm2 = new form2();

there is a button on form2 on clicking that it saves some values and exit the form2 and also I I want to refresh the listview of the already existing form1 without creating a new instance I have to refresh form1 listview. How can I achieve this  ur help will be appreciated. The form1 is already opened and I dont want to load it again.

Thanx in advance


Answer this question

How to Refresh the old form from current form?

  • Doddsy

    If you open the second form modally, the code in form1 after that will run after the second form is closed:

    Form2 frm2 = new Form2();
    frm2.ShowDialog();
    // Refresh listview here

  • How to Refresh the old form from current form?