I`m trying to get the items in of my checkedboxlist that is in form1 from my form2.
I did put the propertie of my form1.checkedboxlist MODIFIER to PUBLIC
I can reach the list but i can`t get the items inside. When i used the checkedboxlist.items.count it tells me there is nothing in my list but it is not true
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();
}
thank you for your help