Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cancel Button on Modified mmMaintenanceForm
Message
 
À
23/04/2008 10:19:06
Frank Dolinar
Mi House of Representatives
Michigan, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Novell 6.x
Database:
MS SQL Server
Divers
Thread ID:
01312518
Message ID:
01312795
Vues:
19
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform