title: How to pass string value from one form to another form's load event in C #
body: <p>I need to pass a string value from <code>Form1</code>:</p>
  
  <pre><code>public void button1_Click(object sender, EventArgs e)
  {
      string DepartmentName = "IT";
      Form2 frm2 = new Form2();
  
      Frm2.Show();
      this.Hide();
  }
  </code></pre>
  
  <p>into the <code>Form2</code> <code>Load</code> event. For example:</p>
  
  <pre><code>private void Form2_Load(object sender, EventArgs e)
  {
      MessageBox.Show(DepartmentName);
      // or 
      // string sql1 = "select Service_Name from Service, " +
      //    "EmployeeService where E_Dep = '" + DepartmentName + "' " +
      //    "and s_ID = Service_ID";
  }
  </code></pre>