Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need Maint Form to catch a state change
Message
 
À
27/06/2006 08:04:29
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:
01131923
Message ID:
01132281
Vues:
11
Tony,

>And this code is giving me a syntax error:
>
>
>Dim oCustomObject As New MyCustomObject()
>AddHandler oOrders.StateChange, AddressOf oCustomObject.StateChangeHandler
>
>
>MyCustomObject() is telling me to change it to System.Object()
>
>and AddHandler is telling me there's a syntax error.

I'd look at the syntax error first. You mentioned you added the StateChangeHandler method to your form...I'm guessing oCustomObject is not your form? Should you be specifying the AddressOf your form's StateChangeHandler method instead?

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