Code:
class LinkWindow{
public void linkUser_Click(object sender, EventArgs e)
        {
                 AllUsers all = new AllUsers();
                 all.Show();
                    if(personPanel.Controls!=null){
                    foreach(Control items in personPanel.Controls){
                        Insert ins = new Insert();
                        ins.InsertMe();
                   }

            
            }
      }
}
____________________________________________________________________________

public class Insert : Linkwindow{
        int checkBoxCount = 0;
        public void InsertMe() {
           
            if (rolePanel.Controls != null)
            {
                Control control = new Control();
                if (control.GetType() == typeof(CheckBox))
                {
                    if (((CheckBox)control).Checked == true)
                    {
                        foreach (CheckBox checkes in rolePanel.Controls)
                        {
                            checkBoxCount++;
                        }
                    }

                }

            }
        }  
    }
Please this code compile well but not doing what I expected. What i want to do is that when I click a radiobutton, check some checkboxes and click linkUser button it should display the checkboxes on the AllUsers form. I did not get it right, I know. Please help a newbie!