من اینجوری تکست اضافه می کنم ولی تویه Cast کردن گیر میده :
private void Form1_Load(object sender, EventArgs e)
{
for (int i = 0; i < 10; i++)
{
Control tmp = new Control();
tmp.Tag = i.ToString();
checkedListBox1.Items.Add(tmp);
checkedListBox1.Items[i] = string.Format("ItemNo {0}", i.ToString());
}
}
private void checkedListBox1_ItemCheck(object sender, ItemCheckEventArgs e)
{
this.Text = (string)((Control)checkedListBox1.Items[e.Index]).Tag;
}
فکر کنم روشش غلطه ؟؟؟؟