试试用checkBox.SelectedItems.Count来获取选中个数
int sum = 0;
foreach (Control c in this.Controls)
{
if (c is CheckBox)
{
CheckBox chk = c as CheckBox;
if(chk.Checked)
sum++;
}
}