You need to pass that information into the second form.
So, on From2
you can add a method that takes a list of bool
values or similar and make this method public.
// put this method in Form2
public void SetModules(IList<bool> modulesEnabled)
{
// here you can test whether a certain module is enabled
// by checking modulesEnabled[0], modulesEnabled[1], etc.
}
From Form1, before showing From2 you would get the state of the checkboxes and construct the modulesEnabled array. Then invoke SetModules on Form2.
Form2 secondForm = new Form2();
IList<bool> modulesList = new List<bool>();
modulesList.Add(checkBox1.Checked);
modulesList.Add(checkBox2.Checked);
modulesList.Add(checkBox3.Checked);
modulesList.Add(checkBox4.Checked);
secondForm.SetModules(modulesList); // make sure to call this BEFORE showing Form2
secondForm.Show();