I need to program in a single check-box, so when it is "marked" select all my files present in a checklistbox and "unchecked" the reverse.
I created a check box in my 'check / uncheck all' application, which requires that when I tag it, select all of my contributors I display in a checklistbox just below and uncheck it, uncheck the flags of all of them from that same checklistbox.
I started with something like this:
if (checkBox1.Checked == true)
foreach (String Arquivo in ck_Colaboradores.CheckedItems)
{
}
else if(checkBox1.Checked == false)
foreach (String Arquivo in ck_Colaboradores.CheckedItems)
{
}