There are many ways to this.
1. Create a class(object, say Emp) to store all the data you need and modify your second form construction method to include the class object; possibly a List<emp> as you have 5 employees. Also create private members to hold this.
public Form2(List<emp> empList)
{
this.EmpList = empList;
InitializeComponent();
}
And when you are ready to call Form2, include the argument to construction as your list
2.Here you store all your List<emp> on Form1 as Public property as:
private List<emp> _empList;
public List<emp> EmpList
{
get { return _empList; }
set { _empList = value; }
}
Make the second form's parent as Form1 when you ready to view Form2 as :
using (Form2 f2 = new Form2())
{
f2.Owner = this;
f2.ShowDialog();
}
and on Form2 can be set as(note: this is the entire code for Form2,just to demonstrate):
public partial class Form2
{
Form1 FormOwner;
private bool[] check = new bool[100];
private List<emp> EmpList;
public Form2
{
InitializeComponent();
}
private void Form2_Load(object sender, EventArgs e)
{
this.FormOwner = (Form1)this.Owner;
this.EmpList = FormOwner.EmpList;
}