I have not used API calls in foxpro I did have some experince using them in Visual basic a while back and I remember that when I can not get something to work the way I wanted it to I could always call a API function that would do the trick. I have read that call back functions are not supported in foxpro Is that true. I want to trap the user pressing the command button when he press the button will a API call help or does some have any other ideas. In am using Windows 95 and I want to trap the command button being pressed before lostfocus event of another control. Or better yet how to tell what control has been pressed in the activate or gotfocus event of a form with a container. If the answer is a API call how do I setup the call and then call the function. What place in the code should I set up the declare or and example of code. Do I need a call back function and how can I do it in foxpro. Is their a 3rd party that has built call back functions in foxpro. My other option I guess would be to do something about the event handler in foxpro can I modify it to know where and what control has been pressed last. Pardon my fishing but I am looking for some type of solution to my problem.