Hi,

I think I was not clear enough. I have two userform. The second form is loaded base on mouse move on the main form. I know if the user goes over the second form, I can unlod it base on mouse move event on that, but there is lots of labels along each other. user just moves around them, not each time goes over the new userform.

I hope iwas clear enough this time. I edited my OP as well.

Thanks for your attention.

Quote Originally Posted by SamT View Post
Best I can think of.
Private Sub UserForm_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal Y As Single)
  If x > Me.Width - 7 Then  MsgBox "Time to unload the Form"

  'If x < ? Then  MsgBox "Time to unload the Form"
  'If y > ? Then  MsgBox "Time to unload the Form"
  'If y < ? Then  MsgBox "Time to unload the Form"
End Sub
The minimum from the Left edge of the form the mouse will register on is 6.25 points. On my computer. Maybe the Form Border is 6.25 points thick :