Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cancel Button on Modified mmMaintenanceForm
Message
 
To
23/04/2008 10:19:06
Frank Dolinar
Mi House of Representatives
Michigan, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Novell 6.x
Database:
MS SQL Server
Miscellaneous
Thread ID:
01312518
Message ID:
01312795
Views:
18
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
Previous
Reply
Map
View

Click here to load this message in the networking platform