Open topic with navigation
WTSupported in traditional Synergy on Windows
One of the following:
The name of the event from which the delegate is removed.
A delegate returned from the DotNetDelegate constructor.
Delegates are automatically removed from all events when they are released if the reference count of the delegate goes to zero.
The last line of the example below removes an instance of the System.EventHandler delegate named button_OnClick from the Click event. See Sample programs for an example in the context of a complete program.
button_OnClick = new DotNetDelegate(sys, "System.EventHandler", ^NULL, & "ns1.cls1.static_meth1") button.AddDelegateToEvent("Click", button_OnClick) . . .