Frank,
>I think I was not quite complete (or perhaps not completely clear) in my request for help.
>Your suggestion probably works if I am attempting to add this behavior to the end-user form (which is written in VB). And at that point it's pretty clear / obvious.
>However, I want to add this behavior in the mmButtonCancel_Click method of the framework because we want all our derived forms to inherit the behavior. The problem I'm having is that the generally obvious options such as setfocus don't appear to be available at all in this context.
The SetFocus() method is defined in mmBaseForm, so it’s definitely available in mmMaintenanceForm. Alternately, you can set the form’s FocusOnCancelControl property. When a form-level Cancel() is executed it automatically sets focus to the control specified in this property
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