Hi Dennis,
You can use MDOWN() function in the LostFocus of the texbox check.
IF MDOWN()
ENDIF
>Hi Sergey,
>
>I am trying to mimic the behavior of the Index tab page of MSDN VFP help. =)
>
>Since the KeyPress event of the textbox can already trap for the UP or DOWN keys, I also need to trap if the mouse or mouse click was used in going out of (or losing focus of) the textbox (and used selecting a grid row). I need this in order to update the textbox contents via updating the UpdateTextBox property to .T.
>
>Thanks again
>
>Dennis
>
--sb--