AttachHandler(EventName: String; [Binding: IForeNETRuntimeMethodBinding = Null]): Integer;
EventName. Name of .NET component event to be processed.
Binding. List of types for event parameters.
The AttachHandler method adds the EventName event to the list of tracked events for .NET component loaded into NetControlBox. At the beginning of connected event, the OnEvent event is generated for the NetControlBox component, in which the handling takes place. After adding, the method returns the event index in the list.
NOTE. Handling of the events having the EventHander delegate type is possible for .NET components.
The example of use is given in description of the CreateControl method.
See also: