To use a custom .net control firstly you will need to add the reference DLL file to all client.

Adding the DLL

Firstly move the DLL file in to the bin folder of your client (normally C:\Program Files (x86)\Microsoft Dynamics AX\60\Client\Bin). Then within a Dynamics Ax development workspace right click on the reference node in the AOT and select “Add reference”:

In the new screen select browse and then select your DLL. Select your Assembly and click ok. You should now see your reference in the references node:

Adding the control to a form

We will be adding the amazing progress bar to a simple form, however I have also added a .net button and progress bar.

To add the control right click on the design and select a new managed host control:

In the next popup you should see your managed reference:

I then added the other controls:

Make sure that the managed host is auto declared as you will need to set the properties in code.

Add your controls to the class

publicclass FormRun extends ObjectRun

{

System.Windows.Forms.Button managedButton;

System.Windows.Forms.ProgressBar managedProgressBar;

GAW.AmazingProgressBar _a;

}

Within the init of your form you can then set the properties of the managed control: