For the simple case when both controls are on the same FlowLayoutPanel, use the SetChildIndexmethod Controls.
Something like that...
var alphaIndex = panel.Controls.IndexOf(controlAlpha);
var betaIndex = panel.Controls.IndexOf(controlBeta);
panel.Controls.SetChildIndex(controlAlpha, betaIndex);
panel.Controls.SetChildIndex(controlBeta, alphaIndex);
Note. I didn’t handle the sequence correctly here - you need to install the previous control first, otherwise, when the second is moved in front, the resulting index will be too high. But this is an exercise for the reader.
, FlowLayoutPanel s, ( ) ( ).