private void GetGluedControlToMoveToNewLineIfPossible(ref int controlNumber, ref IControlHabanero ctl)
{
if (PreviousControlVisible(controlNumber) && BothControlsFitOnALine(controlNumber))
{
//Get the previous control as this is the one that this control is glued to
//E.g. a label and this needs to get moved to the new line.
controlNumber--;
ctl = GetControl(controlNumber);
}
}