private void btnGetData_Click(object sender, EventArgs e) { Hide(); var frm = new frmCompanyRecord(); frm.Show(); frm.GetData(); }