title: Perform Load upon after click button
body: <p>I am trying to use the panel and buttons to load 2 different forms along with entity framework and ado model stuff. I am trying to load the 2nd form <a href="https://i.stack.imgur.com/jvRFs.png" rel="nofollow noreferrer">this picture,</a> using the codes running on the first form since they have the same table. but what happen is whenever I close the 2nd form and try to switch on the <a href="https://i.stack.imgur.com/412V7.png" rel="nofollow noreferrer">second user from this form(driverlist), I am still getting the results that I created before on the first user</a>, I kinda think that the 2nd form is not being loaded although I put some code:</p>
  
  <pre><code>Private Sub DriverLicense_Load(sender As Object, e As EventArgs) Handles MyBase.Load
      Dim user_id As Integer = Driverlist.tbxUser_id.Text
      Driverlist.db = New [Emme_Subic_Transport_Corporation_Payroll].EmmeSubicEntities
      Driverlist.db.UserDetails.Where(Function(c) c.isDeleted &lt;&gt; 1 And c.Id = user_id).Load()
      UserDetailBindingSource.DataSource = Driverlist.db.UserDetails.Local
  
      If Driverlist.tbxUser_id.Text.Count &lt; 1 Then
          MessageBox.Show("Please Select an Employee ID First", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information)
          Drivertest.Panelswitch(Driverlist)
      Else
          Me.Show()
      End If
  End Sub
  
  Private Sub DriverLicense_Activated(sender As Object, e As EventArgs) Handles Me.Activated
      Dim user_id As Integer = Driverlist.tbxUser_id.Text
      Driverlist.db = New [Emme_Subic_Transport_Corporation_Payroll].EmmeSubicEntities
      Driverlist.db.UserDetails.Where(Function(c) c.isDeleted &lt;&gt; 1 And c.Id = user_id).Load()
      UserDetailBindingSource.DataSource = Driverlist.db.UserDetails.Local
  
  End Sub
  </code></pre>
  
  <p>I binded the 2nd form through other resources of data binding from the properties but still on the same resources as the first form. Im pretty new to this so please stop putting negatives on my questions. If you think I am bad at this, I know and I am sorry. by the way this is the code from the buttons and panel if that helps. Thanks everyone.</p>
  
  <pre><code>Sub Panelswitch(Panel As Form)
      PanelControl.Controls.Clear()
      Panel.TopLevel = False
      PanelControl.Controls.Add(Panel)
      Panel.Show()
  End Sub
  
  Private Sub Btntest_Click(sender As Object, e As EventArgs) Handles Btntest.Click
      Panelswitch(Driverlist)
  End Sub
  
  Private Sub Btntest2_Click(sender As Object, e As EventArgs) Handles btntest2.Click
      Panelswitch(DriverLicense)
  End Sub
  </code></pre>