ChartDirector 6.2 (.NET Edition)

The First Windows Forms Project from Scratch


In the previous section The First Windows Forms Project, we introduce a simple bar chart example using code from the "NetWinCharts" sample project. The code is structured so that the sample charts are browsable by the browser in the "NetWinCharts" project.

To use the code in your own project, you may copy the code inside the "createChart" method to your project, and change the "viewer" variable to the name of your control.

In this section, we will provide step by step instructions as an example.

Note that the above code is the same as that in the previous section The First Windows Forms Project, except that the variable "viewer" is replaced with the actual name of the control "winChartViewer1". Please refer to the previous version for detail explanation of the code.