When I try to move the controls from a FlowLayouPanel
to another flpPropriedades -> flpReserva
through a foreach
loop it leaves 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 loop to exit unexpectedly?