>Local llxAxis, llyAxis, lo1, lo2 > >lo1 = Thisform.Container1 >lo2 = Thisform.Container2 > >llxAxis = (NOT((lo2.Left+lo2.Width < lo1.Left) or (lo2.Left > lo1.Left+lo1.Width))) >llyAxis = (NOT((lo2.Top+lo2.Height < lo1.Top) or (lo2.Top > lo1.Height+lo1.Height))) > >If m.llxAxis and m.llyAxis > MessageBox("Overlap") >Else > MessageBox("No overlap") >EndIf >Christof, thanks very much for the code. You had one typo but it was minor. It sure is much simpler that the way I tried to do it.
>llxAxis = (NOT((lo2.Left+lo2.Width < lo1.Left) or (lo2.Left > lo1.Left+lo1.Width))) >llyAxis = (NOT((lo2.Top+lo2.Height < lo1.Top) or (lo2.Top > lo1.Height+lo1.Height))) <-- Changed: >llyAxis = (NOT((lo2.Top+lo2.Height < lo1.Top) or (lo2.Top > lo1.Top+lo1.Height))) <-- To: >