Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need Maint Form to catch a state change
Message
 
To
27/06/2006 08:04:29
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01131923
Message ID:
01132281
Views:
10
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform