title: How can I refresh One form when the other form is closed?
body: <p>I have been developing project in c#. </p>
  
  <p>It has 2 form and these are connected with between each other.</p>
  
  <p>I want to do that when second form is closed, first form refresh. </p>
  
  <p>If I use Thread's Sleep program will be tired. I want to do this with closing events. How can I do ?(Like java's repaint)</p>
  
  <p><strong>Codes are below</strong>:
  <em>Form1</em></p>
  
  <pre><code>public static Form1 form;
      public Form1()
      {
          InitializeComponent();
          form = this;
      }
  
      private void button11_Click(object sender, EventArgs e)
      {
          Form2 yeniform = new Form2();
          yeniform.Show();
  
      }
  </code></pre>
  
  <p><em>Form2(Close Button)</em></p>
  
  <pre><code> private void button1_Click(object sender, EventArgs e)
      {
  
              Form1.form.Invalidate();
              Form1.form.Refresh();
              this.Close();
      }
  </code></pre>