In the LostFocus() you can check if mouse button was pressed and act accordingly.
IF NOT MDOWN()
ENDIF
>Hi Friends,
>
>As I do to change page automatically in a PageFrame when the user arrives in the last field of a page.
>
>I thought about using the Event LostFocus() of the last textBox in the page and to change of page if the Keys Enter, PageDown or Tab have been pressed.
>
>The problem is when the user instead of typing some of the keys above to solve click with the mouse in another field of the page, in this case LostFocus() it will be executed and it will have the improper change of page.
>
>Did anybody already go by this?
>
>Thanks in advance
>
>[] 's
>
>Dionísio
--sb--