title: how to refresh a parent window on close of child window in windows application
body: <p>I have a parent window and a child window. On saving on child window I get alert message and I press ok.On pressing of ok my child gets closed and parent gets updated but the previous object on the parent form still their.
  Now how can I close the older parent page [before updating].</p>
  
  <p>On click of ok I need to return to updated  parent page only.</p>
  
  <p>Conclusion :  But I am getting both older parent and new parent window on click of ok.</p>
  
  <p>On click of ok code as follows:</p>
  
  <pre><code>Me.Close() 'for closing the child window.            
  Dim frmparent As Form = New frmDomain 'for opening the parent window with updation.
  frmDomain2.StartPosition = FormStartPosition.CenterScreen 'to open it in center.
  frmDomain2.MdiParent = frmMain
  frmDomain2.Show()
  </code></pre>