title: Making multiple forms appear as one in VB.NET
body: <p>I am writing a Windows Forms application in VB.NET. I have three forms: the main form, which shows a list of accounts, the account form which allows the user to view/edit the information for a specific account, and the policy form which allows the user to view/edit the information on a specific policy for that account. I want the forms to appear as if they are all the same window. Example: when the application starts, the user clicks an account name in the list box on the main form and clicks "edit". What I want to happen is that the window stays in the exact same place and stays the same exact size, only the content of the main form appears to be replaced with the content of the account form. Same thing if the user then chooses to edit a policy from the account form. When the user finishes and clicks "save", the main form comes back up. Through this entire use case, it would appear to the user as if they were viewing the same window the entire time, with the content of that window changing.</p>
  
  <p>How can I do this? I have tried something like:</p>
  
  <pre><code>Dim newForm as New AcctForm
  newForm.Location = Me.Location
  newForm.Show()
  Me.Close()
  </code></pre>
  
  <p>The problem is that if the user moves the original window, the new window appears where the parent form originally appeared, not where it ended up.</p>