form2からform1にあるcheckedboxlistのアイテムを取得しようとしています。
form1.checkedboxlist MODIFIER のプロパティを PUBLIC に設定しました
リストにアクセスできますが、中のアイテムを取得できません。私がcheckedboxlist.items.countを使用すると、リストに何もないことがわかりますが、そうではありません
string[] list = new string[form1.ckdBoxList.Items.Count];
MessageBox.Show(list.Length.ToString());//In debug it tells me that the lenght is 0
for (int i = 0; i <= list.Length; i++)
{
list[i] = fenPrincipal.ckdBoxList.Items[i].ToString();
}
ご協力ありがとうございました