title: call the form_load() function on closing a child form
body: <p>I am creating an app which currently has 3 forms,</p>
  
  <ul>
  <li>Parent form - to accept login details from the user, validate and if successful hides itself and opens a  child form.</li>
  <li>1st Child form - on form load connects to the database fetches data and displays it. Click on new entry and another child form opens.</li>
  <li>2nd child form - user enters new data for new entry in the database, on success a success message box comes up. user then may click on close button and this form hides itself and the 1st Child form is shown.</li>
  </ul>
  
  <p>what i want to do is to find out someway to reload the 1st Child form, on closing thee 2nd Child form. This will result in the records being displayed in it to get refreshed and thus show the new entry that was just made using the 2nd Child form.</p>
  
  <p>Please  guide me as to how i can achieve this.</p>
  
  <p>Here is the code that i used to handle the hide events.</p>
  
  <p>In the main form on login event = true</p>
  
  <pre><code>cpanel child = new cpanel(); //create new isntance of form, cpanel is the 1st child form
  child.FormClosed += new FormClosedEventHandler(child_FormClosed); //add handler to catch when child form is closed
  child.Show(); //show child
  this.Hide(); //hide parent
  
  void child_FormClosed(object sender, FormClosedEventArgs e)
          {
              //when child form is closed, the parent reappears
              MessageBox.Show("You have been logged out.");
              Application.Exit();
          }
  </code></pre>
  
  <p>In the 2nd child form i have something like this</p>
  
  <pre><code>private void button3_Click(object sender, EventArgs e)
          {
              this.Close();
  
          }
  </code></pre>