private void nextFocus(object sender)
{
bool startLooking = false;
Control next = null;
foreach (Control c in flowLayoutPanel1.Controls)
{
if (startLooking && c.Visible)
{
next = c;
break;
}
if (c == sender)
startLooking = true;
}
if (next != null)
next.Focus();
else
flowLayoutPanel1.Controls[0].Focus();
}