I currently have this code:

Code:
If frm1.Left = frm2.Left + frm2.Width Then
End
End If
that code makes it so that the program ends when form 1 is exactly to the right side of form 2 it ends. how to i make it so that if its in range of about 100, it will still end

i hope my question was clear

thanks in advance