Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need Maint Form to catch a state change
Message
From
27/06/2006 08:04:29
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Need Maint Form to catch a state change
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01131923
Message ID:
01131923
Views:
61
I need to get a Maintenance form to catch a hook.

I can't seem to get the form to handle a state change. I need to change some code every time the business object gets a record. So I pulled in this code into the Code area of the form:
Public Overridable Sub StateChangeHandler(bizObj As mmBaseBusinessObject, 
      e As mmBusinessStateChangeEventArgs)
  'My code goes here I presume
  'Somehow get the state that is changed (HookParentRetrieved) I think
End Sub
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.

Confusing stuff

Can anyone give me the correct syntax for this type of thing?

Thanks.
Next
Reply
Map
View

Click here to load this message in the networking platform