Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
New two New buttons
Message
 
À
05/07/2006 15:22:19
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
Divers
Thread ID:
01133963
Message ID:
01134040
Vues:
20
Tony,

>I have a 2.1 Maintenance form with a btnNew on the List tab page.
>
>I need to have the same functionality on the properties tab page so I added a mmButtonNew on it and renamed it btnReqNew and double-clicked it to create a new btnReqNew event.
>
>Now I need to get it to do the same thing as the btnNew does, but I don't know how to tap into the original btnNew events.
>
>Can anyone tell me what comes next?

If you want it to perform the same code as the button on the first page, then you shouldn't double click it to create a new handler. Here's what you should do:

1. Remove the handler method you created

2. Go back to the form in design mode, select btnReqNew, then go to the Properties window

3. Click the Events button (the lightning bolt) in the Properties Window

4. Find the Click event and from its assocaited combo box, select the handler method for the btnNew method

Now they will both fire the same code

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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform