title: Call form load event in another function
body: <p>I need advice on how to call the form load at other areas in my code to avoid excess copy and paste. I basically need to load the page at other areas after pressing buttons in an interface. I need all of the code that exists and as you can see it is quite a bit to copy and paste multiple times.</p>
  
  <pre><code>public void FBinterface_Load(object sender, EventArgs e)
  {
      txtSerial.Focus();
  
      try
      {
          connection.Open();
  
          OleDbCommand command = new OleDbCommand();
          command.Connection = connection;
          string SerialQuery = "select SerialNumber from Inventory";
          command.CommandText = SerialQuery;
  
          //TO READ DATA
          OleDbDataReader reader = command.ExecuteReader();
          while (reader.Read())
          {
              comboSerial.Items.Add(reader["SerialNumber"]);
          }
          connection.Close();
      }
      catch (OleDbException ex)
      {
          MessageBox.Show(ex.Message);
          connection.Close();
      }
      try
      {
          connection.Open();
  
          OleDbCommand command = new OleDbCommand();
          command.Connection = connection;
          string PartQuery = "select PartNumber from Inventory";
          command.CommandText = PartQuery;
  
          //TO READ DATA
          OleDbDataReader reader = command.ExecuteReader();
          while (reader.Read())
          {
              comboPart.Items.Add(reader["PartNumber"]);
          }
          connection.Close();
      }
      catch (OleDbException ex)
      {
          MessageBox.Show(ex.Message);
          connection.Close();
      }
      try
      {
          connection.Open();
  
          OleDbCommand command = new OleDbCommand();
          command.Connection = connection;
          string ROnumberQuery = "select ROnumber from Inventory";
          command.CommandText = ROnumberQuery;
  
          //TO READ DATA
          OleDbDataReader reader = command.ExecuteReader();
          while (reader.Read())
          {
              comboRO.Items.Add(reader["ROnumber"]);
          }
          connection.Close();
      }
      catch (OleDbException ex)
      {
          MessageBox.Show(ex.Message);
          connection.Close();
      }
      try
      {
          connection.Open();
  
          OleDbCommand command = new OleDbCommand();
          command.Connection = connection;
          string LocationQuery = "select Location from Inventory";
  
          command.CommandText = LocationQuery;
  
          //TO READ DATA
          OleDbDataReader reader = command.ExecuteReader();
          while (reader.Read())
          {
              comboLocation.Items.Add(reader["Location"]);
          }
          connection.Close();
      }
      catch (OleDbException ex)
      {
          MessageBox.Show(ex.Message);
          connection.Close();
      }
  }
  </code></pre>