Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
New two New buttons
Message
 
To
05/07/2006 15:22:19
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01133963
Message ID:
01134040
Views:
19
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform