To use Windows ActiveX control (also named as OCX) in Windows Form Application, you should follow these steps as below First, you should convert the control to EPL Library format, please use menu of “Tool” -> “Convert TypeLib/OCX to Library”

Select OCX component that you need under “OCX Control” root in the popup dialog,

If the control doesn’t list, you can click “Register Control” and register the specified control to windows system,

After you selected a control, click “Next” to display the information of the control,


You can edit each name and description of each object, method, property, event etc. Click Save button to convert and save the control to an .npk file (Package Library File),

And the EPL will query you to copy this file to EPL installation directory as below,

confirm this dialog with Yes button to restart EPL.
When next time you start EPL, please click “Tools” -> “Library Options” menu to check this new added control,

you’ll find the previous added control has been added to your EPL development environment, you can use the control just like using the common controls of EPL Library

Notice:
If you already has a npk file corresponding to a control, you just need copy the npk file to sub directory of “lib” of EPL installation directory, and check this control in “Tools” ->”Library Options” menu.
To use Windows Type Library is almost same as use ActiveX control, you just import the TypeLib like ActiveX control, define object of TypeLib as declare a variable in source code, and use it as a normal object. To use object event, you need drag a object-related event control in the External Event tab to a form, and use “AttachEvent” method of the original object to enable the event control.