1.把所有的checkbox放到panel
2.添加代码
foreach (Control c in panel Controls)
{
if (c is CheckBox && ((CheckBox)c).Checked == true)
{
MessageBox.Show(c.Tag.ToString());
}
}