Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Overriding the Click Method on a pre-defined mmButton
Message
 
À
07/05/2008 17:22:28
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:
01315755
Message ID:
01316538
Vues:
15
Frank,

>We have an mmButtonCancel on most of our data entry / maintenance forms. In some cases we want to add additional functionality to the click method. I would expect that the way to do this in VB.Net would be to override the cilck method in mmButtonCancel (i.e. mmButtonCancel_Click), or the derived cancel button on the mmMaintenanceForm (i.e. mmbtnCancel). We've made several attempts but as soon as we double click on the button on the form to bring forward the code template shown below, we get an immediate error:
>"Handles clause requires a WithEvents variable defined in the containing type or one of its base types."
>----------
>Private Sub mmbtnCancel_Click_1( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mmbtnCancel.Click
>
>End Sub
>----------
>
>How do we get past this error and override the click method of the button?

I think you already figured this out based on other posts?

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