How to add AxMSChart20Lib?

Use the context menu on your Toolbox to "Add/remove items...", browse the COM page in dialog and select "Microsoft Chart Control...". With the chart control in toolbox you add it to form like other controls. The correct references and interop libraries are added by the Designer.
 
I mean how to add it to project Reference not to the form.

The properties for this reference are:

Name: AxInterop.MSChart20Lib
Copy Local: True
Description: Microsoft Chart Control 6.0 (SP4) (OLEDB)
Path: Project\obj\AxInterop.MSChart20Lib.dll
 
This and several other references plus the interop generated files is added automatically when you add the control to form. You can remove the control from form afterwards and the references and interops are still kept.
 
Back
Top