Mode 3 CtrlAction

  1. Right click MyCtrlAction.dll and click Save Target As to download MyCtrlActionLib.dll to the local.
  2. Set the DynamicCode property to CtrlAction.
  3. Click the button to the right of the OnAction property to display the CtrlAction dialog box. Click the button with the ellipse, navigate to MyCtrlActionLib.dll in the Open dialog box that shows up, and then click Open.
  4. Select MyCtrlAction._CtrlAction in the class list and click OK.

  1. Click Ok to save the settings.

Note: The action for a control event is specified by a class object implementing the ICtrlAction interface. When an event is triggered, the object’s Run method, which overrides the Run method of the ICtrlAction interface, will be called. CtrlAction is a class that implements the ICtrlAction interface.