ActiveX Controls Overview

Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

If you want the features of an ActiveX control in a Microsoft Dynamics AX form, you can use the control when you create the form.

Note

ActiveX controls can be security threats. Note the following security issues:

ActiveX controls run in the same security context as the Microsoft Dynamics AX Client.

ActiveX controls that are used by Microsoft Dynamics AX should not be marked as safe for scripting.

If an ActiveX control in Microsoft Dynamics AX has a method with a signature and a name that are equal to a public method that is exposed by the ActiveX control, the X++ method is always called when it is referenced from X++ code.

For more information about ActiveX controls and security, see http://msdn.microsoft.com/workshop/components/activex/sec_activex.asp.

An ActiveX control is a COM object that can be used as a graphical control inside an application. ActiveX controls have a wide range of diverse functionality, and can be purchased from many vendors. The software available as ActiveX components ranges from simple components (such as check boxes and combo boxes) to larger, more complex components (such as spreadsheets, calendars, Internet browsers, and communication programs).

When you install software such as Microsoft Office or Microsoft Internet Explorer, many COM objects and ActiveX controls are added to your computer. Before a COM object can be used, it must be registered in the registry. The installation program normally completes this as part of the installation process.

For more information about adding an ActiveX control to a form, see How to: Add ActiveX Controls to Forms.

See also

.NET Controls

Forms Best Practices

Announcements: New book: "Inside Microsoft Dynamics AX 2012 R3" now available. Get your copy at the MS Press Store.