Viorel,
Actually RETURN .F. in the When Event doesn't allow the click event to fire because the When event fires before the Click event. The Click event does fire before the GotFocus event. So as I initially stated, adding code to the invisible button’s GotFocus event that sets focus to another control or NODEFAULT provides the results Kevin is looking for. FYI, adding RETURN .F. to the GotFocus event does not prevent the control from getting focus. The code must set focus to another control. Try it yourself.
Will
>In order for the button not to get focus,write in
>When event:
>"return .f."
>this will prevent the button from getting focused.