>Well the property for FocusOnCancelControl works in the sample application with it set to the btnNew control. There isn't any additional code or methods in the sample app for this to work. Since I wasn't actually retrieving any data in my test I suspect that had something to do with why the cancel method wasn't firing until I forced it. Frank, you may want to look through the sample Employee maintenance form and compare to what you are doing.
So, all said and done, you were able to get both the FocusOnCancelControl and the SetFocus() method to work?
Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com