0
When I try to move the controls of a FlowLayouPanel
to another flpPropriedades -> flpReserva
through a loop foreach
he leaves in the middle and does not complete the transition.
foreach (Control control in flpPropriedade.Controls)
{
flpReserva.Controls.Add(control);
}
flpReserva.Refresh();
flpPropriedade.Refresh();
What could cause the unexpected output of the loop?
This must be happening when you do Refresh inside the foreach and your property control is in use by the loop.
– Marco Souza
I don’t refresh inside the foreach
– Pedro Luzio
I don’t refresh inside the foreach
– Pedro Luzio