سلام ، احتمالا این کد به دردتون میخوره
using System;
using System.Windows.Forms;
namespace Arraycheckbox
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
_checkBoxes = new CheckBox[] { checkBox1, checkBox2, checkBox3, checkBox4 };
foreach (var checkBox in _checkBoxes)
checkBox.CheckedChanged += new EventHandler(ShowCheckedCheckboxes);
}
void ShowCheckedCheckboxes(object sender, EventArgs e)
{
string message = string.Empty;
for (int i = 0; i < _checkBoxes.Length; i++)
{
if (_checkBoxes[i].Checked && _checkBoxes[i].Enabled)
{
message += string.Format("boxes[{0}] is clicked\n", i);
}
}
MessageBox.Show(message);
}
CheckBox[] _checkBoxes;
}
}
البته اگه یه عکس از برنامتون بذارین و یا بیشتر توضیح بدین مثلا بگین میخواین چکار کنین با این چک باکس ها، بهتر می تونم راهنماییتون کنم