Robert,
If the When() event returns .F. the button can not get focus. But I'm with the others, this is not a standard windows interface design. If they can't click the button set it's .Enabled = .F., set it .T. when they can click it. Otherwise you'll end up with support calls asking why nothing happens sometimes when they click the mouse on the button.
>I am using VFP 5.0 and want to keep a user from pressing a button but not disabling it. I understand that with other versions you could use the WHEN event (when the control is going to receive focus) and preventing the click event to occure. This permits you to disable the button without greying it out.
>Is this possible? I haven't been able to do it or don't know what event to cancel at this point in the sequence.